π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ -0,0 +1,175 @@ | |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Reproducer for commit d363881c66bf4a301bb0af9c5b8119e50f2a7494: | |
| * "Compile negated conditions as inverted jumps" | |
| * | |
| * Run this script on: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Measures repeated fake-closure creation over a method that has not run yet. | |
| // The affected path is Closure::fromCallable()/first-class callable generation. | |
| final class CacheHeavyCallable | |
| { | |
| public $p1 = 1; | |
| public $p2 = 2; | |
| public $p3 = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace PHPStan\BetterReflection\Reflection; | |
| use PhpParser\Node\Expr; | |
| use PHPStan\BetterReflection\BetterReflection; | |
| final class ExprCacheHelper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php declare(strict_types = 1); | |
| use function PHPStan\dumpType; | |
| use function PHPStan\Testing\assertType; | |
| class HelloWorld | |
| { | |
| /** | |
| * Returns whether an element of a given name is in the HTML special category. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| β phpstan-src git:(2.1.x) php -d memory_limit=599M bin/phpstan -v | |
| Note: Using configuration file /Users/staabm/workspace/phpstan-src/phpstan.neon.dist. | |
| 2178/2178 [ββββββββββββββββββββββββββββ] 100% 10 secs | |
| -- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| Error | |
| -- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| Internal error: Trait "Hoa\Event\Listens" not found while analysing file /Users/staabm/workspace/phpstan-src/src/Type/Regex/RegexGroupParser.php | |
| Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?te |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| see https://xdebug.org/docs/garbage_collection | |
| cd phpstan-src | |
| php -dxdebug.mode=gcstats -dxdebug.start_with_request=yes vendor/bin/phpunit | |
| leads to | |
| Garbage Collection Report | |
| version: 1 | |
| creator: xdebug 3.4.7 (PHP 8.3.28) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - clone phpstan-src | |
| - checkout c08e6587e6 | |
| - composer install | |
| - make test | |
| - time XDEBUG_MODE=coverage tests/vendor/bin/paratest --coverage-xml tmp/coverage | |
| leads to: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHPUnit 11.5.34 by Sebastian Bergmann and contributors. | |
| Runtime: PHP 8.3.24 with Xdebug 3.4.5 | |
| Configuration: /Users/staabm/workspace/PHPUnit-Polyfills/phpunit11.xml.dist | |
| string(101) "/Users/staabm/workspace/PHPUnit-Polyfills/tests/Polyfills/AssertFileEqualsSpecializationsTestCase.php" | |
| string(94) "/Users/staabm/workspace/PHPUnit-Polyfills/tests/Polyfills/AssertClosedResourceZlibTestCase.php" | |
| string(146) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForIntersectionOfInterfacesCreated.php" | |
| string(125) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/BeforeTestMethodErrored.php" | |
| string(129) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/BeforeFirstTestMethodCalled.php" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHPUnit 12.3.6 by Sebastian Bergmann and contributors. | |
| Runtime: PHP 8.3.24 with Xdebug 3.4.5 | |
| Configuration: /Users/staabm/workspace/PHPUnit-Polyfills/phpunit12.xml.dist | |
| string(101) "/Users/staabm/workspace/PHPUnit-Polyfills/tests/Polyfills/AssertFileEqualsSpecializationsTestCase.php" | |
| string(94) "/Users/staabm/workspace/PHPUnit-Polyfills/tests/Polyfills/AssertClosedResourceZlibTestCase.php" | |
| string(86) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/sebastian/type/src/type/UnionType.php" | |
| string(88) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/sebastian/type/src/ReflectionMapper.php" | |
| string(107) "/Users/staabm/workspace/PHPUnit-Polyfills/vendor/phpunit/php-code-coverage/src/Target/ValidationFailure.php" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace collecthor\helpers; | |
| use yii\helpers\Html; | |
| enum Mdi | |
| { | |
| case FileArrowUpDownOutline; |
NewerOlder