Skip to content

Commit e363f47

Browse files
authored
Merge pull request #9342 from paulbalandan/new-static
refactor: fix warning on new static usage
2 parents 6cbbf60 + 2114577 commit e363f47

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

tests/_support/Entity/CustomUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @property string $name
2727
* @property Time|null $updated_at
2828
*/
29-
class CustomUser
29+
final class CustomUser
3030
{
3131
private function __construct(
3232
private readonly int $id,
@@ -40,7 +40,7 @@ private function __construct(
4040

4141
public static function reconstruct(array $data): static
4242
{
43-
return new static(
43+
return new self(
4444
$data['id'],
4545
$data['name'],
4646
$data['email'],

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ includes:
4343
- missingType.parameter.neon
4444
- missingType.property.neon
4545
- missingType.return.neon
46-
- new.static.neon
4746
- notIdentical.alwaysTrue.neon
4847
- nullCoalesce.expr.neon
4948
- nullCoalesce.property.neon

utils/phpstan-baseline/new.static.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)