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\SqlWalker; |
||
6 | |||
7 | /** |
||
8 | * AclWalker |
||
9 | */ |
||
10 | class AclWalker extends SqlWalker |
||
11 | { |
||
12 | /** |
||
13 | * Walks down a FromClause AST node, thereby generating the appropriate SQL. |
||
14 | * |
||
15 | * @param string $fromClause |
||
16 | * |
||
17 | * @return string the SQL |
||
18 | */ |
||
19 | 1 | public function walkFromClause($fromClause) |
|
20 | { |
||
21 | 1 | $sql = parent::walkFromClause($fromClause); |
|
0 ignored issues
–
show
|
|||
22 | 1 | $name = $this->getQuery()->getHint('acl.entityRootTableName'); |
|
23 | 1 | $alias = $this->getQuery()->getHint('acl.entityRootTableDqlAlias'); |
|
24 | 1 | $tableAlias = $this->getSQLTableAlias($name, $alias); |
|
25 | 1 | $extraQuery = $this->getQuery()->getHint('acl.extra.query'); |
|
26 | |||
27 | $tempAclView = <<<tempAclView |
||
28 | 1 | JOIN ({$extraQuery}) ta_ ON {$tableAlias}.id = ta_.id |
|
29 | tempAclView; |
||
30 | |||
31 | 1 | return $sql . ' ' . $tempAclView; |
|
32 | } |
||
33 | } |
||
34 |
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: