Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
qa: switch to $varname::class usage instead of get_class($varname)
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed Jul 11, 2023
commit 3f509c9ae013495de556b924967211dd4587d938
3 changes: 1 addition & 2 deletions src/Authentication/DefaultAuthenticationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use function array_merge;
use function array_unique;
use function count;
use function get_class;
use function gettype;
use function is_object;
use function rtrim;
Expand Down Expand Up @@ -231,7 +230,7 @@ private function getTypeFromMap($routeMatch = null)
__METHOD__,
RouteMatch::class,
V2RouteMatch::class,
is_object($routeMatch) ? get_class($routeMatch) : gettype($routeMatch)
is_object($routeMatch) ? $routeMatch::class : gettype($routeMatch)
));
}

Expand Down
3 changes: 1 addition & 2 deletions src/Authorization/DefaultResourceResolverListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Laminas\Stdlib\RequestInterface;

use function array_key_exists;
use function get_class;
use function gettype;
use function is_object;
use function sprintf;
Expand Down Expand Up @@ -84,7 +83,7 @@ public function buildResourceString($routeMatch, $request)
__METHOD__,
RouteMatch::class,
V2RouteMatch::class,
is_object($routeMatch) ? get_class($routeMatch) : gettype($routeMatch)
is_object($routeMatch) ? $routeMatch::class : gettype($routeMatch)
));
}

Expand Down