Skip to content

Commit

Permalink
Merge pull request #156 from jrfnl/feature/correct-extension-removal-…
Browse files Browse the repository at this point in the history
…versions

Correct the removal version nr for a few removed extensions for support of previous PHP 5.x releases
  • Loading branch information
wimg committed Aug 13, 2016
2 parents 681688b + 489800d commit f65dc3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Sniffs/PHP/RemovedExtensionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class PHPCompatibility_Sniffs_PHP_RemovedExtensionsSniff extends PHPCompatibilit
protected $removedExtensions = array(
'activescript' => array(
'5.0' => 1,
'5.1' => 1,
'5.2' => 1,
'5.1' => 0,
'5.2' => 0,
'5.3' => 0,
'5.4' => 0,
'5.5' => 0,
Expand All @@ -59,8 +59,8 @@ class PHPCompatibility_Sniffs_PHP_RemovedExtensionsSniff extends PHPCompatibilit
),
'cpdf' => array(
'5.0' => 1,
'5.1' => 1,
'5.2' => 1,
'5.1' => 0,
'5.2' => 0,
'5.3' => 0,
'5.4' => 0,
'5.5' => 0,
Expand Down Expand Up @@ -180,8 +180,8 @@ class PHPCompatibility_Sniffs_PHP_RemovedExtensionsSniff extends PHPCompatibilit
),
'ircg' => array(
'5.0' => 1,
'5.1' => 1,
'5.2' => 1,
'5.1' => 0,
'5.2' => 0,
'5.3' => 0,
'5.4' => 0,
'5.5' => 0,
Expand Down Expand Up @@ -261,8 +261,8 @@ class PHPCompatibility_Sniffs_PHP_RemovedExtensionsSniff extends PHPCompatibilit
),
'oracle' => array(
'5.0' => 1,
'5.1' => 1,
'5.2' => 1,
'5.1' => 0,
'5.2' => 0,
'5.3' => 0,
'5.4' => 0,
'5.5' => 0,
Expand Down Expand Up @@ -331,8 +331,8 @@ class PHPCompatibility_Sniffs_PHP_RemovedExtensionsSniff extends PHPCompatibilit
),
'yp' => array(
'5.0' => 1,
'5.1' => 1,
'5.2' => 1,
'5.1' => 0,
'5.2' => 0,
'5.3' => 0,
'5.4' => 0,
'5.5' => 0,
Expand Down
10 changes: 5 additions & 5 deletions Tests/Sniffs/PHP/RemovedExtensionsSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function testRemovedExtension($extensionName, $removedIn, $lines, $okVers
public function dataRemovedExtension()
{
return array(
array('activescript', '5.3', array(3, 4), '5.2'),
array('cpdf', '5.3', array(6, 7, 8), '5.2'),
array('activescript', '5.1', array(3, 4), '5.0'),
array('cpdf', '5.1', array(6, 7, 8), '5.0'),
array('dbase', '5.3', array(10), '5.2'),
array('dbx', '5.1', array(12), '5.0'),
array('dio', '5.1', array(14), '5.0'),
Expand All @@ -91,19 +91,19 @@ public function dataRemovedExtension()
array('filepro', '5.2', array(22), '5.1'),
array('hw_api', '5.2', array(24), '5.1'),
array('ingres', '5.1', array(26), '5.0'),
array('ircg', '5.3', array(28), '5.2'),
array('ircg', '5.1', array(28), '5.0'),
array('mcve', '5.1', array(30), '5.0'),
array('ming', '5.3', array(32), '5.2'),
array('mnogosearch', '5.1', array(34), '5.0'),
array('msql', '5.3', array(36), '5.2'),
array('ncurses', '5.3', array(40), '5.2'),
array('oracle', '5.3', array(42), '5.2'),
array('oracle', '5.1', array(42), '5.0'),
array('ovrimos', '5.1', array(44), '5.0'),
array('pfpro', '5.3', array(46), '5.2'),
array('sqlite', '5.4', array(48), '5.3'),
array('sybase', '5.3', array(50), '5.2'),
array('w32api', '5.1', array(52), '5.0'),
array('yp', '5.3', array(54), '5.2'),
array('yp', '5.1', array(54), '5.0'),
array('mssql', '7.0', array(63), '5.6'),
);
}
Expand Down

0 comments on commit f65dc3d

Please sign in to comment.