We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45e792 commit 1f31d7aCopy full SHA for 1f31d7a
Doctrine/Phpcr/Route.php
@@ -97,8 +97,9 @@ public function setAddTrailingSlash($addTrailingSlash)
97
*/
98
public function setParent($parent)
99
{
100
- if(!is_object($parent))
+ if (!is_object($parent)) {
101
throw new InvalidArgumentException("Parent must be an object ".gettype ($parent)." given.");
102
+ }
103
104
$this->parent = $parent;
105
@@ -142,8 +143,9 @@ public function getName()
142
143
144
public function setPosition($parent, $name)
145
146
147
148
149
150
151
$this->name = $name;
0 commit comments