Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Change default coding style to PSR-12
Browse files Browse the repository at this point in the history
* Dropped support for phpspec v4
* Updated deps
  • Loading branch information
Jakob Linskeseder committed Nov 18, 2019
1 parent 0f72553 commit 8559df3
Show file tree
Hide file tree
Showing 10 changed files with 586 additions and 1,161 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- '7.1'
- '7.2'
- '7.3'

before_install:
- travis_retry composer self-update
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Changelog
All notable changes to this project will be documented in this file.

## [v5.0.0] - 2019-11-18
### Changed
- Default coding style is now PSR-12
- Default code style fixer is now `squizlabs/php_codesniffer`
### Added
- Support for phpspec v5 and v6
### Removed
- Support for phpspec v4

## [v4.2.0] - 2019-11-04
### Changed
- Replaced package `leanphp/phpspec-code-coverage` with `friends-of-phpspec/phpspec-code-coverage`
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,11 @@ Must be configured with a `phpspec.yml` file in your root folder.
We are using the `leanphp/phpspec-code-coverage` extension for generating coverage reports.
This extension requires a `phpspec-coverage.yml` file in your root folder and Xdebug enabled.

### [FriendsOfPHP/PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)

Currently used for fixing the code.
Fixes all files in `src` directory.

This package is not used for checking (linting), because PHP_Codesniffer prints a
more readable output.

### [squizlabs/PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

Currently used for checking (linting) the code.
Currently used for checking (linting) and fixing the code.
Sniffs all files in `src` directory.

This package could also be used for fixing, but PHP-CS-Fixer does it better.

### [phpmd/phpmd](https://github.com/phpmd/phpmd)

Used for mess detection.
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
},
"require": {
"php": ">=7.1",
"friendsofphp/php-cs-fixer": "^2.13",
"karriere/phpspec-matchers": "^2.0",
"friends-of-phpspec/phpspec-code-coverage": "^4.3",
"karriere/phpspec-matchers": "^3.0",
"phpmd/phpmd": "^2.6",
"phpspec/phpspec": "^4.3",
"phpspec/phpspec": "^5.1 || ^6.0",
"squizlabs/php_codesniffer": "^3.3",
"symfony/console": "^3.2 || ^4.0",
"symfony/process": "^3.2 || ^4.0"
Expand Down
Loading

0 comments on commit 8559df3

Please sign in to comment.