Skip to content

Commit f0bfc98

Browse files
Merge branch '2.7' into 2.8
* 2.7: Compatibility with Twig 1.27 Enhance GAE compat by removing some realpath() bumped Symfony version to 2.7.21 updated VERSION for 2.7.20 update CONTRIBUTORS for 2.7.20 updated CHANGELOG for 2.7.20 [SecurityBundle] Fix twig-bridge lowest dep
2 parents f8b1922 + a7b7504 commit f0bfc98

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 SelfCheckingResourceInterface, \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)