Skip to content

* fix not reset the remained keys after Collection->sortBy() #245

* fix not reset the remained keys after Collection->sortBy()

* fix not reset the remained keys after Collection->sortBy() #245

Triggered via push October 26, 2024 15:30
Status Failure
Total duration 3m 43s
Artifacts 3

be.yml

on: push
Matrix: runs-on
Fit to window
Zoom out
Zoom in

Annotations

117 errors and 82 warnings
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (ubuntu-latest) / phpmd: tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (ubuntu-latest) / phpmd
Process completed with exit code 2.
runs-on (ubuntu-latest) / phpstan: src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
runs-on (ubuntu-latest) / phpstan: src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L48
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L77
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L103
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
runs-on (ubuntu-latest) / phpstan: src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $currentAuthorExpGrade of method App\DTO\User\User::setCurrentAuthorExpGrade() expects App\DTO\User\AuthorExpGrade|null, mixed given.
runs-on (ubuntu-latest) / phpcs: src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (ubuntu-latest) / phpcs: src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (ubuntu-latest) / phpcs: src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (ubuntu-latest) / phpcs
Process completed with exit code 2.
runs-on (ubuntu-latest) / psalm: src/Controller/AssetController.php#L11
AssetController.php: UnusedClass: Class App\Controller\AssetController is never used
runs-on (ubuntu-latest) / psalm: src/Controller/AssetController.php#L30
AssetController.php: PossiblyNullOperand: Cannot concatenate with a possibly null UnitEnum|array<array-key, mixed>|null|scalar
runs-on (ubuntu-latest) / psalm: src/Controller/ForumsController.php#L9
ForumsController.php: UnusedClass: Class App\Controller\ForumsController is never used
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L30
PostsController.php: UnusedClass: Class App\Controller\PostsController is never used
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L60
PostsController.php: MixedArgument: Argument 1 of App\PostsQuery\ParamsValidator::setParams cannot be mixed, expecting array<array-key, array<array-key, mixed>>
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L60
PostsController.php: PossiblyNullArgument: Argument 1 of Safe\json_decode cannot be null, possibly null value provided
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L102
PostsController.php: MixedArgument: Argument 1 of collect cannot be mixed, expecting Illuminate\Contracts\Support\Arrayable<array-key, mixed>|iterable<array-key, mixed>|null
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: PossiblyNullArrayOffset: Cannot access value on variable $authorExpGrades using possibly null offset int|null
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: MixedArgument: Argument 1 of App\DTO\User\User::setCurrentAuthorExpGrade cannot be mixed, expecting App\DTO\User\AuthorExpGrade|null
runs-on (ubuntu-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: PossiblyNullArgument: Argument 1 of Illuminate\Support\Collection::offsetGet cannot be null, possibly null value provided
runs-on (ubuntu-latest) / phan: src/DTO/Post/Post.php#L39
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;authorUid defined at src/Entity/Post/Post.php:11 (Did you mean \App\Entity\Post\Post::getAuthorUid())
runs-on (ubuntu-latest) / phan: src/DTO/Post/Post.php#L40
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;postedAt defined at src/Entity/Post/Post.php:12 (Did you mean \App\Entity\Post\Post::getPostedAt())
runs-on (ubuntu-latest) / phan: src/DTO/Post/Post.php#L41
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;lastSeenAt defined at src/Entity/Post/Post.php:13 (Did you mean \App\Entity\Post\Post::getLastSeenAt())
runs-on (ubuntu-latest) / phan: src/DTO/Post/Post.php#L42
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;agreeCount defined at src/Entity/Post/Post.php:14
runs-on (ubuntu-latest) / phan: src/DTO/Post/Post.php#L43
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;disagreeCount defined at src/Entity/Post/Post.php:15
runs-on (ubuntu-latest) / phan: src/DTO/TimestampedDTO.php#L11
TimestampedDTO.php: PhanUndeclaredMethod: Call to undeclared method \App\DTO\TimestampedDTO::__construct
runs-on (ubuntu-latest) / phan: src/DTO/TimestampedDTO.php#L12
TimestampedDTO.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\TimestampedEntity-&gt;createdAt defined at src/Entity/TimestampedEntity.php:10 (Did you mean \App\Entity\TimestampedEntity::getCreatedAt())
runs-on (ubuntu-latest) / phan: src/DTO/TimestampedDTO.php#L13
TimestampedDTO.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\TimestampedEntity-&gt;updatedAt defined at src/Entity/TimestampedEntity.php:11 (Did you mean \App\Entity\TimestampedEntity::getUpdatedAt())
runs-on (ubuntu-latest) / phan: src/PostsQuery/ParamsValidator.php#L54
ParamsValidator.php: PhanTypeMismatchArgumentReal: Argument 1 ($values) is 'fid' of type 'fid' but \Illuminate\Support\Collection::push() takes 'authorExpGrade'[]|'authorUid'[]|'latestReplierUid'[]|'pid'[]|'replySubReplyCount'[]|'spid'[]|'threadReplyCount'[]|'threadShareCount'[]|'threadViewCount'[]|'tid'[] (real type array) defined at vendor/illuminate/collections/Collection.php:1020
runs-on (ubuntu-latest) / phan: src/Repository/Post/Content/SubReplyContentRepository.php#L13
SubReplyContentRepository.php: PhanClassContainsAbstractMethod: non-abstract class \App\Repository\Post\Content\SubReplyContentRepository contains abstract method \App\Repository\Post\PostRepository::getPosts(\ArrayAccess|array $postsId): array declared at src/Repository/Post/PostRepository.php:17
runs-on (windows-latest) / phpmd: be/src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (windows-latest) / phpmd: be/tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (windows-latest) / phpmd
Process completed with exit code 2.
runs-on (ubuntu-latest) / phpunit-infection
Process completed with exit code 2.
runs-on (windows-latest) / phpstan: src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
runs-on (windows-latest) / phpstan: src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L48
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L77
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L103
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
runs-on (windows-latest) / phpstan: src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $currentAuthorExpGrade of method App\DTO\User\User::setCurrentAuthorExpGrade() expects App\DTO\User\AuthorExpGrade|null, mixed given.
runs-on (windows-latest) / phpcs
Process completed with exit code 1.
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (windows-latest) / phpcs: be/src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (windows-latest) / phpcs: be/src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (windows-latest) / phpcs: be/src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (windows-latest) / phpcs: be/src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (windows-latest) / phpcs: be/src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpcs
Process completed with exit code 2.
runs-on (macos-latest) / phpcs: src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (macos-latest) / phpcs: src/DTO/Post/SubReply.php#L10
SubReply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpcs: src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (macos-latest) / phpcs: src/DTO/Post/Post.php#L10
Post.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpcs: src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (macos-latest) / phpcs: src/DTO/Post/Reply.php#L10
Reply.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpcs: src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (macos-latest) / phpcs: src/DTO/Post/Thread.php#L10
Thread.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpcs: src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceAfterOpeningBrace: First trait conflict resolution statement must be on the line after the opening brace
runs-on (macos-latest) / phpcs: src/DTO/User/User.php#L10
User.php: PSR12.Traits.UseDeclaration.SpaceBeforeClosingBrace: Closing brace must be on the line after the last trait conflict resolution statement
runs-on (macos-latest) / phpmd: src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (macos-latest) / phpmd: tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
runs-on (macos-latest) / phpmd
Process completed with exit code 2.
runs-on (windows-latest) / psalm
Process completed with exit code 127.
runs-on (macos-latest) / phan
Process completed with exit code 1.
runs-on (windows-latest) / phan: src\DTO\Post\Post.php#L39
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;authorUid defined at src\Entity\Post\Post.php:11 (Did you mean \App\Entity\Post\Post::getAuthorUid())
runs-on (windows-latest) / phan: src\DTO\Post\Post.php#L40
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;postedAt defined at src\Entity\Post\Post.php:12 (Did you mean \App\Entity\Post\Post::getPostedAt())
runs-on (windows-latest) / phan: src\DTO\Post\Post.php#L41
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;lastSeenAt defined at src\Entity\Post\Post.php:13 (Did you mean \App\Entity\Post\Post::getLastSeenAt())
runs-on (windows-latest) / phan: src\DTO\Post\Post.php#L42
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;agreeCount defined at src\Entity\Post\Post.php:14
runs-on (windows-latest) / phan: src\DTO\Post\Post.php#L43
Post.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\Post\Post-&gt;disagreeCount defined at src\Entity\Post\Post.php:15
runs-on (windows-latest) / phan: src\DTO\TimestampedDTO.php#L11
TimestampedDTO.php: PhanUndeclaredMethod: Call to undeclared method \App\DTO\TimestampedDTO::__construct
runs-on (windows-latest) / phan: src\DTO\TimestampedDTO.php#L12
TimestampedDTO.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\TimestampedEntity-&gt;createdAt defined at src\Entity\TimestampedEntity.php:10 (Did you mean \App\Entity\TimestampedEntity::getCreatedAt())
runs-on (windows-latest) / phan: src\DTO\TimestampedDTO.php#L13
TimestampedDTO.php: PhanAccessPropertyProtected: Cannot access protected property \App\Entity\TimestampedEntity-&gt;updatedAt defined at src\Entity\TimestampedEntity.php:11 (Did you mean \App\Entity\TimestampedEntity::getUpdatedAt())
runs-on (windows-latest) / phan: src\PostsQuery\ParamsValidator.php#L54
ParamsValidator.php: PhanTypeMismatchArgumentReal: Argument 1 ($values) is 'fid' of type 'fid' but \Illuminate\Support\Collection::push() takes 'authorExpGrade'[]|'authorUid'[]|'latestReplierUid'[]|'pid'[]|'replySubReplyCount'[]|'spid'[]|'threadReplyCount'[]|'threadShareCount'[]|'threadViewCount'[]|'tid'[] (real type array) defined at vendor\illuminate\collections\Collection.php:1020
runs-on (windows-latest) / phan: src\Repository\Post\Content\SubReplyContentRepository.php#L13
SubReplyContentRepository.php: PhanClassContainsAbstractMethod: non-abstract class \App\Repository\Post\Content\SubReplyContentRepository contains abstract method \App\Repository\Post\PostRepository::getPosts(\ArrayAccess|array $postsId): array declared at src\Repository\Post\PostRepository.php:17
runs-on (windows-latest) / phpunit-infection
Process completed with exit code 1.
runs-on (macos-latest) / phpunit-infection
Process completed with exit code 2.
runs-on (macos-latest) / phpstan: src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
runs-on (macos-latest) / phpstan: src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L48
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L60
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L77
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L102
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L103
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
runs-on (macos-latest) / phpstan: src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $currentAuthorExpGrade of method App\DTO\User\User::setCurrentAuthorExpGrade() expects App\DTO\User\AuthorExpGrade|null, mixed given.
runs-on (macos-latest) / psalm: src/Controller/AssetController.php#L11
AssetController.php: UnusedClass: Class App\Controller\AssetController is never used
runs-on (macos-latest) / psalm: src/Controller/AssetController.php#L30
AssetController.php: PossiblyNullOperand: Cannot concatenate with a possibly null UnitEnum|array<array-key, mixed>|null|scalar
runs-on (macos-latest) / psalm: src/Controller/ForumsController.php#L9
ForumsController.php: UnusedClass: Class App\Controller\ForumsController is never used
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L30
PostsController.php: UnusedClass: Class App\Controller\PostsController is never used
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L60
PostsController.php: MixedArgument: Argument 1 of App\PostsQuery\ParamsValidator::setParams cannot be mixed, expecting array<array-key, array<array-key, mixed>>
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L60
PostsController.php: PossiblyNullArgument: Argument 1 of Safe\json_decode cannot be null, possibly null value provided
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L102
PostsController.php: MixedArgument: Argument 1 of collect cannot be mixed, expecting Illuminate\Contracts\Support\Arrayable<array-key, mixed>|iterable<array-key, mixed>|null
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: PossiblyNullArrayOffset: Cannot access value on variable $authorExpGrades using possibly null offset int|null
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: MixedArgument: Argument 1 of App\DTO\User\User::setCurrentAuthorExpGrade cannot be mixed, expecting App\DTO\User\AuthorExpGrade|null
runs-on (macos-latest) / psalm: src/Controller/PostsController.php#L104
PostsController.php: PossiblyNullArgument: Argument 1 of Illuminate\Support\Collection::offsetGet cannot be null, possibly null value provided
runs-on (ubuntu-latest) / phpmd: src/Controller/PostsController.php#L30
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (ubuntu-latest) / phpcs: src/PostsQuery/PostsTree.php#L141
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 131 characters
runs-on (ubuntu-latest) / phpcs: src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
runs-on (ubuntu-latest) / phan: public/index.php#L7
index.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $context)
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L11
AssetController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\AssetController
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L21
AssetController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\AssetController::getAsset()
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L24
AssetController.php: PhanPartialTypeMismatchArgument: Argument 1 ($content) is preg_replace_callback_array(['#/npm/(?&lt;filename&gt;\\w+)@(\\d+\\.?){3}/\\+esm#'=&gt;(fn),'@^//# sourceMappingURL=.+$@m'=&gt;(fn)], $this-&gt;filesystem-&gt;readFile(($this-&gt;getParameter('kernel.project_dir') . "/public/react-json-view/{$filename}"))) of type string|string[] but \Symfony\Component\HttpFoundation\Response::__construct() takes ?string (string[] is incompatible) defined at vendor/symfony/http-foundation/Response.php:200
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L26
AssetController.php: PhanTypeMismatchArgumentInternal: Argument 1 ($pattern) is ['#/npm/(?&lt;filename&gt;\\w+)@(\\d+\\.?){3}/\\+esm#'=&gt;(fn),'@^//# sourceMappingURL=.+$@m'=&gt;(fn)] of type array{\x23/npm/\x28\x3f\x3cfilename\x3e\\w+\x29\x40\x28\\d+\\.\x3f\x29\x7b3\x7d/\\+esm\x23:Closure(array):string,\x40^//\x23\x20sourceMappingURL\x3d.+$\x40m:Closure():''} but \preg_replace_callback_array() takes array&lt;string,callable(array):string&gt;
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L26
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $m)
runs-on (ubuntu-latest) / phan: src/Controller/AssetController.php#L28
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure()
runs-on (ubuntu-latest) / phan: src/Controller/ForumsController.php#L9
ForumsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\ForumsController
runs-on (ubuntu-latest) / phan: src/Controller/ForumsController.php#L14
ForumsController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\ForumsController::query()
runs-on (ubuntu-latest) / phan: src/Controller/PostsController.php#L30
PostsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\PostsController
runs-on (windows-latest) / phpmd: be/src/Controller/PostsController.php#L30
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (windows-latest) / phpmd: be/tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (ubuntu-latest) / phpunit-infection: be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ if ($value === null) { return null; } - rewind($value); + return stream_get_contents($value); } }
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $exception = $event->getThrowable(); if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); - } elseif ($exception instanceof ValidationFailedException) { + } elseif (true) { $event->setResponse(JsonResponse::fromJsonString( // https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php $this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { // https://github.com/laravel/framework/issues/3929#issuecomment-935123918 $response = $event->getResponse(); - if ($response instanceof JsonResponse) { + if (true) { $response->setEncodingOptions(JSON_PRETTY_PRINT); } } }
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (ubuntu-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ return; } $json = $response->getContent(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]); $event->setResponse(new Response(<<<HTML <html>
runs-on (ubuntu-latest) / phpunit-infection: be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ ]; public static function abortAPI(int $errorCode) : never { - $statusCode = 0; + $statusCode = -1; $errorInfo = null; foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) { if (\array_key_exists($errorCode, $infoErrorInfo)) {
runs-on (ubuntu-latest) / phpunit-infection: be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void { - $this->params->addDefaultValueOnParams(); + $this->params->addDefaultValueOnUniqueParams(); // sort here to prevent further sort while validating $sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();
runs-on (windows-latest) / phpcs: be/src/PostsQuery/PostsTree.php#L141
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 131 characters
runs-on (windows-latest) / phpcs: be/src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
runs-on (macos-latest) / phpcs: src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
runs-on (macos-latest) / phpcs: src/PostsQuery/PostsTree.php#L141
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 131 characters
runs-on (macos-latest) / phpmd: src/Controller/PostsController.php#L30
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (macos-latest) / phpmd: tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
runs-on (windows-latest) / phan: public\index.php#L7
index.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $context)
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L11
AssetController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\AssetController
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L21
AssetController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\AssetController::getAsset()
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L24
AssetController.php: PhanPartialTypeMismatchArgument: Argument 1 ($content) is preg_replace_callback_array(['#/npm/(?&lt;filename&gt;\\w+)@(\\d+\\.?){3}/\\+esm#'=&gt;(fn),'@^//# sourceMappingURL=.+$@m'=&gt;(fn)], $this-&gt;filesystem-&gt;readFile(($this-&gt;getParameter('kernel.project_dir') . "/public/react-json-view/{$filename}"))) of type string|string[] but \Symfony\Component\HttpFoundation\Response::__construct() takes ?string (string[] is incompatible) defined at vendor\symfony\http-foundation\Response.php:200
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L26
AssetController.php: PhanTypeMismatchArgumentInternal: Argument 1 ($pattern) is ['#/npm/(?&lt;filename&gt;\\w+)@(\\d+\\.?){3}/\\+esm#'=&gt;(fn),'@^//# sourceMappingURL=.+$@m'=&gt;(fn)] of type array{\x23/npm/\x28\x3f\x3cfilename\x3e\\w+\x29\x40\x28\\d+\\.\x3f\x29\x7b3\x7d/\\+esm\x23:Closure(array):string,\x40^//\x23\x20sourceMappingURL\x3d.+$\x40m:Closure():''} but \preg_replace_callback_array() takes array&lt;string,callable(array):string&gt;
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L26
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $m)
runs-on (windows-latest) / phan: src\Controller\AssetController.php#L28
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure()
runs-on (windows-latest) / phan: src\Controller\ForumsController.php#L9
ForumsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\ForumsController
runs-on (windows-latest) / phan: src\Controller\ForumsController.php#L14
ForumsController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\ForumsController::query()
runs-on (windows-latest) / phan: src\Controller\PostsController.php#L30
PostsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\PostsController
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
runs-on (windows-latest) / phpunit-infection: be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ if ($value === null) { return null; } - rewind($value); + return stream_get_contents($value); } }
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $exception = $event->getThrowable(); if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); - } elseif ($exception instanceof ValidationFailedException) { + } elseif (true) { $event->setResponse(JsonResponse::fromJsonString( // https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php $this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { // https://github.com/laravel/framework/issues/3929#issuecomment-935123918 $response = $event->getResponse(); - if ($response instanceof JsonResponse) { + if (true) { $response->setEncodingOptions(JSON_PRETTY_PRINT); } } }
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (windows-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ return; } $json = $response->getContent(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]); $event->setResponse(new Response(<<<HTML <html>
runs-on (windows-latest) / phpunit-infection: be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ ]; public static function abortAPI(int $errorCode) : never { - $statusCode = 0; + $statusCode = -1; $errorInfo = null; foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) { if (\array_key_exists($errorCode, $infoErrorInfo)) {
runs-on (windows-latest) / phpunit-infection: be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void { - $this->params->addDefaultValueOnParams(); + $this->params->addDefaultValueOnUniqueParams(); // sort here to prevent further sort while validating $sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();
runs-on (macos-latest) / phpunit-infection: be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ if ($value === null) { return null; } - rewind($value); + return stream_get_contents($value); } }
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ public function __invoke(ExceptionEvent $event) : void { $exception = $event->getThrowable(); - if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { + if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); } elseif ($exception instanceof ValidationFailedException) { $event->setResponse(JsonResponse::fromJsonString(
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $exception = $event->getThrowable(); if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) { $event->setResponse(JsonResponse::fromJsonString($exception->getMessage())); - } elseif ($exception instanceof ValidationFailedException) { + } elseif (true) { $event->setResponse(JsonResponse::fromJsonString( // https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php $this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { // https://github.com/laravel/framework/issues/3929#issuecomment-935123918 $response = $event->getResponse(); - if ($response instanceof JsonResponse) { + if (true) { $response->setEncodingOptions(JSON_PRETTY_PRINT); } } }
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { $request = $event->getRequest(); $response = $event->getResponse(); - if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) { + if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) { return; } $json = $response->getContent();
runs-on (macos-latest) / phpunit-infection: be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ return; } $json = $response->getContent(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]); $event->setResponse(new Response(<<<HTML <html>
runs-on (macos-latest) / phpunit-infection: be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ ]; public static function abortAPI(int $errorCode) : never { - $statusCode = 0; + $statusCode = -1; $errorInfo = null; foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) { if (\array_key_exists($errorCode, $infoErrorInfo)) {
runs-on (macos-latest) / phpunit-infection: be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void { - $this->params->addDefaultValueOnParams(); + $this->params->addDefaultValueOnUniqueParams(); // sort here to prevent further sort while validating $sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();

Artifacts

Produced during runtime
Name Size
coverage-macos-latest
7.34 KB
coverage-ubuntu-latest
7.34 KB
coverage-windows-latest
7.26 KB