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; |
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 | |
| $func = static fn( int $Point ) : int => TestMatrix::Values[ $Point ][ 0 ]; | |
| $foo = | |
| [ | |
| [ 'val' => $func( 1237123 ) ], | |
| [ 'val' => $func( 4379284 ) ], | |
| [ 'val' => $func( 4534895 ) ], | |
| [ 'val' => $func( 9483754 ) ], | |
| [ 'val' => $func( 8127361 ) ], |
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); | |
| /** | |
| * Partial copy of https://github.com/reactphp/promise/blob/3.x/src/PromiseInterface.php | |
| * @template-covariant T | |
| */ | |
| interface PromiseInterface | |
| { |
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); | |
| /* | |
| * This file is part of the overtrue/phplint package | |
| * | |
| * (c) overtrue | |
| * | |
| * This source file is subject to the MIT license that is bundled |
NewerOlder