Merge pull request #11 from fheinze/use-object-structure-for-csp-rules #28
Annotations
11 errors
|
phpunit
Process completed with exit code 1.
|
|
phpstan:
Tests/Unit/Helpers/DirectivesNormalizerTest.php#L170
Parameter #1 $directives of static method Flowpack\ContentSecurityPolicy\Helpers\DirectivesNormalizer::normalize() expects array<string, array<int|string, bool|string>>, array<int|string, array|string> given.
|
|
phpstan:
Tests/Unit/Helpers/DirectivesNormalizerTest.php#L163
Parameter #1 $directives of static method Flowpack\ContentSecurityPolicy\Helpers\DirectivesNormalizer::normalize() expects array<string, array<int|string, bool|string>>, array<string, array|null> given.
|
|
phpstan:
Tests/Unit/Factory/PolicyFactoryTest.php#L134
Access to an undefined property Unit\Factory\PolicyFactoryTest::$policyFactoryReflection.
|
|
phpstan:
Tests/Unit/Factory/PolicyFactoryTest.php#L119
Access to an undefined property Unit\Factory\PolicyFactoryTest::$policyFactoryReflection.
|
|
phpstan:
Tests/Unit/Factory/PolicyFactoryTest.php#L36
Access to an undefined property Unit\Factory\PolicyFactoryTest::$policyFactoryReflection.
|
|
phpstan:
Classes/Helpers/DirectivesNormalizer.php#L69
Method Flowpack\ContentSecurityPolicy\Helpers\DirectivesNormalizer::normalize() should return array<array<string>> but returns array<string, array<int, bool|int|string>>.
|
|
phpstan:
Classes/Helpers/DirectivesNormalizer.php#L62
Construct empty() is not allowed. Use more strict comparison.
|
|
phpstan:
Classes/Helpers/DirectivesNormalizer.php#L53
Construct empty() is not allowed. Use more strict comparison.
|
|
phpstan:
Classes/Helpers/DirectivesNormalizer.php#L46
Construct empty() is not allowed. Use more strict comparison.
|
|
phpstan:
Classes/Helpers/DirectivesNormalizer.php#L29
Call to function is_array() with array<int|string, bool|string> will always evaluate to true.
|