aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-08-01 09:25:09 +0200
committerGitHub <noreply@github.com>2017-08-01 09:25:09 +0200
commit2b895e0c60b6f283cb26b2ca0e18a05497103bc2 (patch)
tree85e00c12d8a0e507d46c11ec4cba67fc31aae67e /lib/private/AppFramework
parent456392e627de3aad19c8188974a4972cf4e274db (diff)
parent2fae696d35d221a9fb25b90b90b32c35c81fdd45 (diff)
downloadnextcloud-server-2b895e0c60b6f283cb26b2ca0e18a05497103bc2.tar.gz
nextcloud-server-2b895e0c60b6f283cb26b2ca0e18a05497103bc2.zip
Merge pull request #5847 from nextcloud/make-phan-config-more-strict-2
Phan fixes
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php2
-rw-r--r--lib/private/AppFramework/Http/Request.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index b233f3ca9b6..d0c69c3bf32 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -75,7 +75,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
* Put your class dependencies in here
* @param string $appName the name of the app
* @param array $urlParams
- * @param ServerContainer $server
+ * @param ServerContainer|null $server
*/
public function __construct($appName, $urlParams = array(), ServerContainer $server = null){
parent::__construct();
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index 09e18f74177..956744e5d5e 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -721,7 +721,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
// strip off the script name's dir and file name
// FIXME: Sabre does not really belong here
- list($path, $name) = \Sabre\HTTP\URLUtil::splitPath($scriptName);
+ list($path, $name) = \Sabre\Uri\split($scriptName);
if (!empty($path)) {
if($path === $pathInfo || strpos($pathInfo, $path.'/') === 0) {
$pathInfo = substr($pathInfo, strlen($path));