Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 249ba3d

Browse files
committed
Fixed lang-deprecation
1 parent 6814b05 commit 249ba3d

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ language: php
22

33
sudo: false
44

5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
59
matrix:
610
include:
711
- php: 5.5
812
- php: 5.6
9-
- php: hhvm
1013
- php: 7
1114
allow_failures:
12-
- php: hhvm
1315
- php: 7
1416
fast_finish: true
1517

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"require": {
1717
"php": ">=5.5.9 || ^7.0",
18-
"nikic/php-parser": "~3.0",
18+
"nikic/php-parser": "3.*",
1919
"symfony/console": "^2.6 || ^3.0",
2020
"symfony/finder": "^2.6 || ^3.0",
2121
"phpdocumentor/reflection-docblock": "~2.0",

tests/Visitor/Usage/FindLanguageDeprecationsTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,6 @@
88

99
class FindLanguageDeprecationsTest extends FindTestCase
1010
{
11-
// http://php.net/manual/en/migration53.deprecated.php
12-
public function testAssignOfNewByReference()
13-
{
14-
$source = <<<'EOC'
15-
<?php
16-
17-
$foo =& new Foo();
18-
19-
EOC;
20-
$splFileInfo = $this->prophesize('Symfony\Component\Finder\SplFileInfo');
21-
$phpFileInfo = $this->parsePhpFileFromStringAndTraverseWithVisitor(
22-
$file = PhpFileInfo::create($splFileInfo->reveal()),
23-
$source,
24-
new FindLanguageDeprecations()
25-
);
26-
27-
$this->assertEquals(
28-
array(
29-
new DeprecatedLanguageUsage('Assigning the return value of new by reference is now deprecated.', 'Since PHP 5.3 use normal assignment instead.', 3),
30-
),
31-
$phpFileInfo->getDeprecatedLanguageUsages()
32-
);
33-
}
34-
3511
public function testAssignByReference()
3612
{
3713
$source = <<<'EOC'

0 commit comments

Comments
 (0)