Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

php7 support #73

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1c0b15c
Add support for renaming local variables inside functions
K-Phoen May 14, 2016
2aaabe1
Add a test for the local variable renaming inside functions
K-Phoen May 14, 2016
746d697
Fix undeclared variable usage
K-Phoen May 14, 2016
9306801
Allow to rename function and method arguments
K-Phoen May 14, 2016
b595ed0
Update vendors
K-Phoen May 14, 2016
867b96e
Use nikic/PHP-Parser ~2.0
K-Phoen May 14, 2016
3f4e7a8
Fix case in method call
K-Phoen May 14, 2016
ffb4867
Prefer single quotes when possible
K-Phoen May 14, 2016
d318e46
Remove useless semicolons
K-Phoen May 14, 2016
1a1f91e
Use short syntax for bits operation
K-Phoen May 14, 2016
ceee74a
Use assertCount in tests when possible
K-Phoen May 14, 2016
d89aef8
Update tests
K-Phoen May 14, 2016
33d81cf
Remove unused variables
K-Phoen May 14, 2016
8d94437
Remove unused imports
K-Phoen May 14, 2016
522a953
Remove unused attribute
K-Phoen May 14, 2016
c41c0b1
Fix undeclared variable usage
K-Phoen May 14, 2016
67cab17
Update travis-ci config
K-Phoen May 14, 2016
7e07066
PHP 7.0 should not be allowed to fail
K-Phoen May 14, 2016
eca98ae
Also test against HHVM
K-Phoen May 14, 2016
5696332
Disallow failures for HHVM
K-Phoen May 14, 2016
acc316f
Add rename property command
K-Phoen May 15, 2016
ae172a7
Add a few behat tests
K-Phoen May 15, 2016
286a0f1
Talk about the "Rename Class Property" refactor
K-Phoen May 16, 2016
e750c69
Switch to POPSuL fork of php-token-reflection
AJenbo Jun 4, 2017
8d49db4
Don't throw a fit when file doesn't contain a class
AJenbo Jun 4, 2017
ff01104
Switch to my branch of PHP-Token-Reflection
AJenbo Jun 4, 2017
bdc51b3
Hanvle nested array keys
AJenbo Jul 2, 2017
8c86834
Update README.md
AJenbo Jul 4, 2017
774b51e
Require php 5.5
AJenbo Jul 4, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: php
before_script:
- composer self-update
- composer install --dev --prefer-dist
script: php vendor/bin/phpunit; php vendor/bin/behat --format progress

sudo: false

php:
- 5.4
- 5.5
Expand All @@ -12,5 +11,15 @@ php:
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: 7
- php: 5.4

before_install:
- phpenv config-rm xdebug.ini || true
- composer self-update

install:
- composer install --optimize-autoloader --no-interaction --ignore-platform-reqs

script:
- php vendor/bin/phpunit
- php vendor/bin/behat --format progress
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Based on data from these sources the Refactoring Browser consists of two distinc

## Install & Basic Usage

[Download PHAR](https://github.com/QafooLabs/php-refactoring-browser/releases)
[Download PHAR](https://github.com/AJenbo/php-refactoring-browser/releases)

The refactoring browser is used with:

Expand Down Expand Up @@ -81,6 +81,12 @@ Rename a local variable from one to another name:

php refactor.phar rename-local-variable <file> <line> <old-name> <new-name>

### Rename Class Property

Rename a class property from one to another name:

php refactor.phar rename-property <file> <line> <old-name> <new-name>

### Convert Local to Instance Variable

Converts a local variable into an instance variable, creates the property and renames
Expand Down
29 changes: 18 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,29 @@
{"name": "Benjamin Eberlei", "email": "[email protected]"}
],

"repositories": [
{
"type": "vcs",
"url": "https://github.com/AJenbo/PHP-Token-Reflection"
}
],

"require": {
"nikic/php-parser": "@stable",
"beberlei/assert": "@stable",
"andrewsville/php-token-reflection": "@stable",
"symfony/finder": "~2.4@stable",
"symfony/console": "~2.4@stable",
"nikic/php-parser": "~2.1",
"beberlei/assert": "~2.3",
"POPSuL/php-token-reflection": "dev-develop",
"symfony/finder": "~2.4",
"symfony/console": "~2.4",
"tomphp/patch-builder": "~0.1"
},

"require-dev": {
"php": ">=5.4",
"behat/behat": "~2.5@stable",
"mikey179/vfsStream": "@stable",
"phake/phake": "@stable",
"symfony/process": "@stable",
"phpunit/phpunit": "~4.6@stable"
"php": "~5.4|~7.0",
"behat/behat": "~2.5",
"mikey179/vfsStream": "~1.5",
"phake/phake": "~2.0",
"symfony/process": "~2.6",
"phpunit/phpunit": "~4.6"
},

"autoload": {
Expand Down
Loading