Skip to content

Commit

Permalink
Fix: Use class keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 18, 2023
1 parent eb446c4 commit 12e5acc
Show file tree
Hide file tree
Showing 19 changed files with 248 additions and 276 deletions.
94 changes: 92 additions & 2 deletions phpstan-baseline.neon
Expand Up @@ -190,6 +190,16 @@ parameters:
count: 1
path: test/Double/Faker/TrueGenerator.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Integration\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Integration/FixtureFactoryTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Integration\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Integration/FixtureFactoryTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Ergebnis\\\\\\\\FactoryBot\\\\\\\\Count' and Ergebnis\\\\FactoryBot\\\\Count will always evaluate to true\\.$#"
count: 2
Expand Down Expand Up @@ -431,20 +441,95 @@ parameters:
path: test/Unit/Exception/InvalidSequenceTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\FieldDefinition\\\\Closure not found\\.$#"
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ClosureTest.php
path: test/Unit/FieldDefinition/OptionalTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/OptionalTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Example\\\\\\\\Entity\\\\\\\\User' and Example\\\\Entity\\\\User will always evaluate to true\\.$#"
count: 2
path: test/Unit/FieldDefinition/ReferenceTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ReferenceTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ReferenceTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\) with array\\<int, Example\\\\Entity\\\\User\\> will always evaluate to true\\.$#"
count: 2
path: test/Unit/FieldDefinition/ReferencesTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ReferencesTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\Exception\\\\InvalidCount not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ReferencesTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ReferencesTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FieldDefinition\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FieldDefinition/ValueTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingDefaultStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingDefaultStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithOptionalStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithOptionalStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\Strategy\\\\WithOptionalStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithOptionalStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\EntityDefinition not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithoutOptionalStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithoutOptionalStrategyTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\FixtureFactory\\\\Strategy\\\\WithoutOptionalStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactory/UsingWithoutOptionalStrategyTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Ergebnis\\\\\\\\FactoryBot\\\\\\\\FixtureFactory' and Ergebnis\\\\FactoryBot\\\\FixtureFactory will always evaluate to true\\.$#"
count: 3
Expand Down Expand Up @@ -475,6 +560,11 @@ parameters:
count: 2
path: test/Unit/FixtureFactoryTest.php

-
message: "#^Class Ergebnis\\\\FactoryBot\\\\Test\\\\Unit\\\\Strategy\\\\DefaultStrategy not found\\.$#"
count: 1
path: test/Unit/FixtureFactoryTest.php

-
message: "#^Parameter \\#1 \\$className of method Ergebnis\\\\FactoryBot\\\\FixtureFactory\\:\\:define\\(\\) expects class\\-string\\<NotAClass\\>, string given\\.$#"
count: 1
Expand Down

0 comments on commit 12e5acc

Please sign in to comment.