Skip to content

Commit

Permalink
Merge pull request #9342 from paulbalandan/new-static
Browse files Browse the repository at this point in the history
refactor: fix warning on new static usage
  • Loading branch information
samsonasik authored Dec 28, 2024
2 parents 6cbbf60 + 2114577 commit e363f47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tests/_support/Entity/CustomUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @property string $name
* @property Time|null $updated_at
*/
class CustomUser
final class CustomUser
{
private function __construct(
private readonly int $id,
Expand All @@ -40,7 +40,7 @@ private function __construct(

public static function reconstruct(array $data): static
{
return new static(
return new self(
$data['id'],
$data['name'],
$data['email'],
Expand Down
1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ includes:
- missingType.parameter.neon
- missingType.property.neon
- missingType.return.neon
- new.static.neon
- notIdentical.alwaysTrue.neon
- nullCoalesce.expr.neon
- nullCoalesce.property.neon
Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/new.static.neon

This file was deleted.

0 comments on commit e363f47

Please sign in to comment.