Skip to content

Commit

Permalink
Drop T_NAMESPACE, T_NS_SEPARATOR constants failover for PHP < 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 5, 2021
1 parent a2ec6e7 commit 66bd745
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/zend-file/library/Zend/File/ClassFileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ public function __construct($dirOrIterator = '.')

parent::__construct($iterator);
$this->setInfoClass('Zend_File_PhpClassFile');

// Forward-compat with PHP 5.3
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
if (!defined('T_NAMESPACE')) {
define('T_NAMESPACE', 'namespace');
}
if (!defined('T_NS_SEPARATOR')) {
define('T_NS_SEPARATOR', '\\');
}
}
}

/**
Expand Down

0 comments on commit 66bd745

Please sign in to comment.