Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Update code sniffer to 11.1 #45

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"doctrine/persistence": "^3.1"
},
"require-dev": {
"doctrine/coding-standard": "^11.0",
"doctrine/coding-standard": "~11.1.0",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@
*/
abstract class BasicObjectPersister extends ObjectPersister
{
/** @phpstan-var class-string<T> */
protected string $className;

/** @var ClassMetadataInterface<T> */
protected ClassMetadataInterface|null $class = null;

/** @phpstan-param class-string<T> $className */
public function __construct(protected ObjectManagerInterface $objectManager, string $className)
public function __construct(protected ObjectManagerInterface $objectManager, protected string $className)
{
$this->className = $className;
}

public function getClassName(): string
Expand Down