Import most of Phinx\Util\Util #663
Annotations
23 errors
Run phpstan:
src/Util/Util.php#L234
Method Migrations\Util\Util::glob() should return array<string> but returns array<int, string>|false.
|
Run phpstan:
src/Util/Util.php#L250
Parameter #1 $filename of function file_exists expects string, string|false given.
|
Run phpstan:
src/Util/Util.php#L259
Parameter #1 $filename of function fopen expects string, string|false given.
|
Run phpstan:
src/Util/Util.php#L271
Method Migrations\Util\Util::loadPhpFile() should return string but returns string|false.
|
Run phpstan
Process completed with exit code 1.
|
Run phpcs:
tests/TestCase/Util/UtilTest.php#L10
Use statements should be sorted alphabetically. The first wrong one is Cake\TestSuite\TestCase.
|
Run phpcs:
tests/TestCase/Util/_files/migrations/subdirectory/foobar.php#L1
Missing declare(strict_types=1).
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120111235330_test_migration.php#L1
Missing declare(strict_types=1).
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120111235330_test_migration.php#L5
Each class must be in a namespace of at least one level (a top-level vendor name)
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120111235330_test_migration.php#L5
Class name doesn't match filename; expected "class 20120111235330_test_migration"
|
Run phpcs:
tests/TestCase/Util/_files/migrations/not_a_migration.php#L1
Missing declare(strict_types=1).
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120116183504_test_migration_2.php#L1
Missing declare(strict_types=1).
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120116183504_test_migration_2.php#L5
Each class must be in a namespace of at least one level (a top-level vendor name)
|
Run phpcs:
tests/TestCase/Util/_files/migrations/20120116183504_test_migration_2.php#L5
Class name doesn't match filename; expected "class 20120116183504_test_migration_2"
|
Run phpcs
Process completed with exit code 1.
|
Run psalm:
src/Util/Util.php#L81
src/Util/Util.php:81:28: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L138
src/Util/Util.php:138:24: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L140
src/Util/Util.php:140:30: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L183
src/Util/Util.php:183:33: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L194
src/Util/Util.php:194:33: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L195
src/Util/Util.php:195:33: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm:
src/Util/Util.php#L206
src/Util/Util.php:206:33: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run psalm
Process completed with exit code 2.
|
Loading