Skip to content

Commit

Permalink
Merge pull request #92 from mention-me/chore/rector-towards-php-8
Browse files Browse the repository at this point in the history
[Part 2] Modernise code
  • Loading branch information
ryanmab authored Apr 24, 2024
2 parents 83ec688 + 4965787 commit 9e44098
Show file tree
Hide file tree
Showing 14 changed files with 501 additions and 709 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run Rector
run: composer rector --dry-run

- name: Run test suite
run: composer test
Expand Down
12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9",
"phpunit/phpunit": "^10",
"php-http/mock-client": "^1.4.1",
"guzzlehttp/guzzle": "^7.0.1",
"http-interop/http-factory-guzzle": "^1.0.0"
"http-interop/http-factory-guzzle": "^1.0.0",
"rector/rector": "^1.0"
},
"minimum-stability": "stable",
"config": {
Expand All @@ -30,7 +31,8 @@
}
},
"scripts": {
"test": "phpunit tests/ --verbose"
"test": "phpunit tests/",
"rector": "rector --dry-run"
},
"license": "MIT",
"authors": [
Expand All @@ -39,8 +41,8 @@
"email": "[email protected]"
},
{
"name": "Alex Oanea",
"email": "alex.oanea@mention-me.com"
"name": "Ryan Maber",
"email": "ryan.maber@mention-me.com"
}
]
}
Loading

0 comments on commit 9e44098

Please sign in to comment.