Permalink
Browse files

fixed compatibility with PHP 5.4

  • Loading branch information...
1 parent 53bf820 commit 9f0e2869a38a198f1fc3213f7ad67b6d1c7623c3 @dg dg committed Dec 29, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 tasks/convert52-renamedClasses.php
  2. +1 −1 tasks/convert52.php
  3. +1 −1 tasks/convert53.php
View
4 tasks/convert52-renamedClasses.php
@@ -20,11 +20,11 @@
'Nette\Diagnostics\Helpers' => 'DebugHelpers',
'Nette\Diagnostics\Bar' => 'DebugBar',
'Nette\Diagnostics\BlueScreen' => 'DebugBlueScreen',
- 'Nette\Iterators\Filter' => 'CallbackFilterIterator',
+ 'Nette\Iterators\Filter' => 'NCallbackFilterIterator',
'Nette\Iterators\Recursor' => 'GenericRecursiveIterator',
'Nette\Iterators\InstanceFilter' => 'InstanceFilterIterator',
'Nette\Iterators\Mapper' => 'MapIterator',
- 'Nette\Iterators\RecursiveFilter' => 'RecursiveCallbackFilterIterator',
+ 'Nette\Iterators\RecursiveFilter' => 'NRecursiveCallbackFilterIterator',
'Nette\Iterators\CachingIterator' => 'SmartCachingIterator',
'Nette\Application\Diagnostics\RoutingPanel' => 'RoutingDebugger',
'Nette\Application\Request' => 'PresenterRequest',
View
2 tasks/convert52.php
@@ -12,7 +12,7 @@
$s = $orig = file_get_contents($file);
- if (strpos($s, '@phpversion 5.3')) { // delete 5.3 files
+ if (strpos($s, '@phpversion 5.3') || strpos($s, '@phpversion 5.4')) { // delete > 5.2
unlink($file);
return;
}
View
2 tasks/convert53.php
@@ -9,7 +9,7 @@
$project->convert53 = function($file) {
$s = $orig = file_get_contents($file);
- if (strpos($s, '@phpversion < 5.3')) { // delete 5.2 files
+ if (strpos($s, '@phpversion < 5.3') || strpos($s, '@phpversion 5.4')) { // delete non 5.3 files
unlink($file);
return;
}

0 comments on commit 9f0e286

Please sign in to comment.