Get phpstan working. #1237
ci.yml
on: push
PHPCPD
20s
Tests
2m 38s
PHPLoc
31s
PHPStan (experimental)
1m 19s
PHP-CS-Fixer
39s
PHP-Code-Sniffer
37s
Lint YAML
31s
Validate Doctrine schema
28s
Security checks
38s
Annotations
1 error and 10 warnings
|
PHPStan (experimental)
Process completed with exit code 1.
|
|
Tests:
src/Model/Admin/RightsModel.php#L190
Escaped Mutant for Mutator "LessThanNegotiation":
@@ @@
$length = \strlen($scope);
while ($offset < $length) {
- while ($offset < $length && ctype_space($scope[$offset])) {
+ while ($offset >= $length && ctype_space($scope[$offset])) {
++$offset;
}
if ($offset >= $length) {
|
|
Tests:
src/Model/Admin/RightsModel.php#L189
Escaped Mutant for Mutator "LessThan":
@@ @@
$offset = 0;
$length = \strlen($scope);
- while ($offset < $length) {
+ while ($offset <= $length) {
while ($offset < $length && ctype_space($scope[$offset])) {
++$offset;
}
|
|
Tests:
src/Model/Admin/RightsModel.php#L182
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
{
$scope = trim($scope);
if ('' === $scope) {
- return [];
+
}
$tokens = [];
|
|
Tests:
src/Model/Admin/RightsModel.php#L180
Escaped Mutant for Mutator "UnwrapTrim":
@@ @@
*/
private function parseScope(string $scope): ?array
{
- $scope = trim($scope);
+ $scope = $scope;
if ('' === $scope) {
return [];
}
|
|
Tests:
src/Model/Admin/CheckerModel.php#L128
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
]);
}
- $url = $this->urlGenerator->generate('conversation_view', ['id' => $message->getId()]);
+ $url = $this->urlGenerator->generate('conversation_view', []);
$hostingRequest = $message->getRequest();
if (null === $hostingRequest) {
$payload = BrowserNotificationPayload::message($message->getSender(), $url);
|
|
Tests:
src/Model/Admin/CheckerModel.php#L128
Escaped Mutant for Mutator "ArrayItem":
@@ @@
]);
}
- $url = $this->urlGenerator->generate('conversation_view', ['id' => $message->getId()]);
+ $url = $this->urlGenerator->generate('conversation_view', ['id' > $message->getId()]);
$hostingRequest = $message->getRequest();
if (null === $hostingRequest) {
$payload = BrowserNotificationPayload::message($message->getSender(), $url);
|
|
Tests:
src/Model/Admin/CheckerModel.php#L115
Escaped Mutant for Mutator "ArrayItem":
@@ @@
[
'message' => $message,
'subject' => $message->getSubject()->getSubject(),
- 'body' => $message->getMessage(),
+ 'body' > $message->getMessage(),
]
);
} else {
|
|
Tests:
src/Model/Admin/CheckerModel.php#L114
Escaped Mutant for Mutator "ArrayItem":
@@ @@
'message',
[
'message' => $message,
- 'subject' => $message->getSubject()->getSubject(),
+ 'subject' > $message->getSubject()->getSubject(),
'body' => $message->getMessage(),
]
);
|
|
Tests:
src/Model/Admin/CheckerModel.php#L112
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$message->getReceiver(),
'message',
[
- 'message' => $message,
'subject' => $message->getSubject()->getSubject(),
'body' => $message->getMessage(),
]
|
|
Tests:
src/Model/Admin/CheckerModel.php#L51
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
/** @var MessageRepository $repository */
$repository = $this->entityManager->getRepository(Message::class);
- $messages = $repository->findBy([
- 'id' => $messageIds,
- ]);
+ $messages = $repository->findBy([]);
/** @var Message $message */
foreach ($messages as $message) {
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
infection.log
|
5.25 KB |
sha256:5fdaf61669ba62579d9302f574030cc41fcc749942cda74b13d1dee087eb03a4
|
|