Skip to content

Commit 7974935

Browse files
authored
Url::access return type changes depending on a parameter (#896)
Access return type changes depending on a parameter
1 parent 6dc228e commit 7974935

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stubs/Drupal/Core/Url.stub

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ class Url implements TrustedCallbackInterface {
1111
*/
1212
public function toString(bool $collect_bubbleable_metadata = FALSE) {
1313
}
14+
15+
/**
16+
* @return ($return_as_object ? \Drupal\Core\Access\AccessResultInterface : bool)
17+
*/
18+
public function access(?\Drupal\Core\Session\AccountInterface $account = NULL, bool $return_as_object = FALSE): \Drupal\Core\Access\AccessResultInterface|bool {
19+
}
1420

1521
}

0 commit comments

Comments
 (0)