Skip to content

Commit 33ac3e2

Browse files
committed
style: apply fixes from qa
1 parent 417a4eb commit 33ac3e2

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

tests/Fixtures/Controllers/AdminController.php

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

tests/Integration/Auth/AccessControl/PolicyBasedAccessControlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ final class PolicyWithoutActionNames
457457
#[PolicyFor(Post::class)]
458458
public function canMarkAsPublished(?Post $post, ?User $user): bool
459459
{
460-
if (! $user) {
460+
if ($user === null) {
461461
return false;
462462
}
463463

@@ -467,7 +467,7 @@ public function canMarkAsPublished(?Post $post, ?User $user): bool
467467
#[PolicyFor(Post::class)]
468468
public function approveForPublication(?Post $post, ?User $user): bool
469469
{
470-
if (! $user) {
470+
if ($user === null) {
471471
return false;
472472
}
473473

0 commit comments

Comments
 (0)