Skip to content

Commit

Permalink
use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kerbert101 committed Nov 16, 2023
1 parent 94dadcc commit 2d521fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __sleep(): array
when unserializing data */
return array_values(array_diff(array_map(function ($prop) {

Check failure on line 87 in lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php

View workflow job for this annotation

GitHub Actions / Static Analysis with Psalm

InvalidReturnStatement

lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php:87:16: InvalidReturnStatement: The inferred type 'list<array<array-key, string>|string>' does not match the declared return type 'list<string>' for Doctrine\ORM\Query\Exec\AbstractSqlExecutor::__sleep (see https://psalm.dev/128)

Check failure on line 87 in lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php

View workflow job for this annotation

GitHub Actions / coding-standards / Coding Standards (8.2)

Function array_map() should not be referenced via a fallback global name, but via a use statement.

Check failure on line 87 in lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php

View workflow job for this annotation

GitHub Actions / coding-standards / Coding Standards (8.2)

Closure not using "$this" should be declared static.
return str_replace("\0*\0", '', $prop);

Check failure on line 88 in lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php

View workflow job for this annotation

GitHub Actions / coding-standards / Coding Standards (8.2)

Function str_replace() should not be referenced via a fallback global name, but via a use statement.
}, array_keys((array) $this)), ["_sqlStatements"]));
}, array_keys((array) $this)), ['_sqlStatements']));
}

public function __wakeup(): void
Expand Down

0 comments on commit 2d521fb

Please sign in to comment.