Skip to content

Commit a7b7504

Browse files
Enhance GAE compat by removing some realpath()
1 parent 5e99c4f commit a7b7504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resource/FileResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FileResource implements ResourceInterface, \Serializable
3232
*/
3333
public function __construct($resource)
3434
{
35-
$this->resource = realpath($resource);
35+
$this->resource = realpath($resource) ?: (file_exists($resource) ? $resource : false);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)