8000 Add E_USER_DEPRECATED warning · symfony/symfony@3744edf · GitHub
[go: up one dir, main page]

Skip to content

Commit 3744edf

Browse files
committed
Add E_USER_DEPRECATED warning
1 parent 98aa48b commit 3744edf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Config/ConfigCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function __construct($file, $debug)
4848
*/
4949
public function __toString()
5050
{
51+
trigger_error('ConfigCache::__toString() is deprecated since version 2.7 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
5152
return $this->file;
5253
}
5354

0 commit comments

Comments
 (0)
0