Skip to content

deps(deps): update phpstan packages #91

deps(deps): update phpstan packages

deps(deps): update phpstan packages #91

Triggered via pull request July 6, 2024 20:37
Status Success
Total duration 1m 53s
Artifacts

testing.yml

on: pull_request
Matrix: code-coverage
Matrix: mutation-testing
Matrix: test-sqlite
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Cache/Providers/CacheServiceProvider.php#L25
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ { /** @var Repository $config */ $config = $this->app->get(Repository::class); - $config->set('cycle.tokenizer.directories', array_merge($config->get('cycle.tokenizer.directories', []), [__DIR__ . '/../Entities'])); + $config->set('cycle.tokenizer.directories', [__DIR__ . '/../Entities']); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Laravel/Providers/Registrators/RegisterMigrations.php#L35
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ }); $app->singleton(NameGeneratorInterface::class, static function (Application $app) : NameGeneratorInterface { $config = $app->get(MigrationConfig::class); - $nameGenerator = $config->toArray()['nameGenerator'] ?? NameBasedOnChangesGenerator::class; + $nameGenerator = NameBasedOnChangesGenerator::class ?? $config->toArray()['nameGenerator']; return $app->get($nameGenerator); }); $app->singleton(GeneratorStrategyInterface::class, static function (Application $app) : GeneratorStrategyInterface {
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Laravel/Providers/Registrators/RegisterSchema.php#L70
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $schemaCompiler = Compiler::fromMemory(cache: $cache); if ($schemaCompiler->isEmpty() || !$config->cacheSchema()) { $schemaCompiler = Compiler::compile(registry: $app->get(Registry::class), queue: $app->get(GeneratorLoader::class)); - $schemaCompiler->toMemory($cache); + } return $schemaCompiler->toSchema(); }); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Queue/Providers/QueueServiceProvider.php#L25
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ { /** @var Repository $config */ $config = $this->app->get(Repository::class); - $config->set('cycle.tokenizer.directories', array_merge($config->get('cycle.tokenizer.directories', []), [__DIR__ . '/../Entities'])); + $config->set('cycle.tokenizer.directories', [__DIR__ . '/../Entities']); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Session/Providers/SessionServiceProvider.php#L25
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ { /** @var Repository $config */ $config = $this->app->get(Repository::class); - $config->set('cycle.tokenizer.directories', array_merge($config->get('cycle.tokenizer.directories', []), [__DIR__ . '/../Entities'])); + $config->set('cycle.tokenizer.directories', [__DIR__ . '/../Entities']); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Telescope/Providers/TelescopeServiceProvider.php#L25
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ { /** @var Repository $config */ $config = $this->app->get(Repository::class); - $config->set('cycle.tokenizer.directories', array_merge($config->get('cycle.tokenizer.directories', []), [__DIR__ . '/../Entities'])); + $config->set('cycle.tokenizer.directories', [__DIR__ . '/../Entities']); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Testing/Concerns/InteractsWithDatabase.php#L109
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } protected function assertSoftDeleted($table, array $data = [], $connection = null, $deletedAtColumn = 'deleted_at') : self { - $this->assertThat($table, new SoftDeletedInDatabase(app(DatabaseProviderInterface::class), $data, $deletedAtColumn)); + return $this; } protected function assertNotSoftDeleted($table, array $data = [], $connection = null, $deletedAtColumn = 'deleted_at') : self
mutation-testing (ubuntu-latest, 8.2, locked): src/Testing/Concerns/InteractsWithDatabase.php#L123
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } protected function assertNotSoftDeleted($table, array $data = [], $connection = null, $deletedAtColumn = 'deleted_at') : self { - $this->assertThat($table, new NotSoftDeletedInDatabase(app(DatabaseProviderInterface::class), $data, $deletedAtColumn)); + return $this; } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Testing/RefreshDatabase.php#L13
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ use Cycle\Database\Table; trait RefreshDatabase { - protected function refreshDatabase() : void + private function refreshDatabase() : void { $database = app(DatabaseProviderInterface::class)->database('default'); /** @var Table $table */