Skip to content

Commit

Permalink
refactor: Using is_subclass_of replace is_a
Browse files Browse the repository at this point in the history
  • Loading branch information
siganushka committed Nov 21, 2024
1 parent 3d439a0 commit b61e809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->cannotBeEmpty()
->defaultValue(UniqidTokenGenerator::class)
->validate()
->ifTrue(static fn (mixed $v): bool => \is_string($v) && !is_a($v, RequestTokenGeneratorInterface::class, true))
->ifTrue(static fn (mixed $v): bool => \is_string($v) && !is_subclass_of($v, RequestTokenGeneratorInterface::class, true))
->thenInvalid('The value must be instanceof '.RequestTokenGeneratorInterface::class.', %s given.')
->end()
->end()
Expand Down

0 comments on commit b61e809

Please sign in to comment.