These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\AdminBundle\Helper\Security\Acl; |
||
4 | |||
5 | use Doctrine\ORM\Query; |
||
6 | use Doctrine\ORM\Query\SqlWalker; |
||
7 | |||
8 | /** |
||
9 | * AclWalker |
||
10 | */ |
||
11 | class AclWalker extends SqlWalker |
||
12 | { |
||
13 | /** |
||
14 | * Walks down a FromClause AST node, thereby generating the appropriate SQL. |
||
15 | * |
||
16 | * @param string $fromClause |
||
17 | * |
||
18 | * @return string the SQL |
||
19 | */ |
||
20 | 1 | public function walkFromClause($fromClause) |
|
21 | { |
||
22 | 1 | $sql = parent::walkFromClause($fromClause); |
|
0 ignored issues
–
show
|
|||
23 | 1 | $name = $this->getQuery()->getHint('acl.entityRootTableName'); |
|
24 | 1 | $alias = $this->getQuery()->getHint('acl.entityRootTableDqlAlias'); |
|
25 | 1 | $tableAlias = $this->getSQLTableAlias($name, $alias); |
|
26 | 1 | $extraQuery = $this->getQuery()->getHint('acl.extra.query'); |
|
27 | |||
28 | $tempAclView = <<<tempAclView |
||
29 | 1 | JOIN ({$extraQuery}) ta_ ON {$tableAlias}.id = ta_.id |
|
30 | tempAclView; |
||
31 | |||
32 | 1 | return $sql . ' ' . $tempAclView; |
|
33 | } |
||
34 | } |
||
35 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: