Skip to content

Commit 14c9458

Browse files
committed
Fix redundant type casts
1 parent 379ca89 commit 14c9458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/Loader/AbstractLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function addNamespaceAlias(string $alias, string $namespace)
6767
protected function newConstraint(string $name, $options = null)
6868
{
6969
if (str_contains($name, '\\') && class_exists($name)) {
70-
$className = (string) $name;
70+
$className = $name;
7171
} elseif (str_contains($name, ':')) {
7272
[$prefix, $className] = explode(':', $name, 2);
7373

0 commit comments

Comments
 (0)