Skip to content

Releases: phpro/grumphp

Version 0.22.0

03 Sep 12:14
v0.22.0
4608d6c
Compare
Choose a tag to compare

Version 0.21.0

27 Aug 09:39
v0.21.0
53468a8
Compare
Choose a tag to compare

Version 0.20.0

04 Aug 13:12
v0.20.0
1443f73
Compare
Choose a tag to compare

Version 0.19.1

24 Jun 05:20
v0.19.1
3be2d5f
Compare
Choose a tag to compare

Version 0.19.0

05 Jun 08:26
v0.19.0
430095d
Compare
Choose a tag to compare

Total issues resolved: 1

Upgrading

Validated GrumPHP parameters

The new version will validate the structure and content of the GrumPHP parameters.
Therefor you need to move the grumphp parameters out of the regular parameters section.
If you are not using any symfony/dependency-injection parameters, you only need to rename the parameters keyword:

# grumphp.yaml

- parameters:
+ grumphp:

note: If you are using conventions, the parameters used in the conventions still need to remain under parameters. Don't forget to put tasks and other grumphp related configuraiton under grumphp!

note: The parameters bin_dir and git_dir have been removed since v0.16 . It is safe to get rid of those parameters as well. We now use an environment based system to customize paths.

grumphp:
-    bin_dir: "./vendor/bin"
-    git_dir: "."

Removed support for PHP-CS-Fixer v1.

Since PHP-CS-Fixer is out for quite some time and because v3 is in the making, we drop support for version 1.
If you still want to use version 1, you can use an older version of GrumPHP or provide a custom extension for your project.

By default, the phpcsfixer will now load the task for the latest PHP-CS-fixer.
We also provided a phpcsfixer2 alias to make sure existing projects don't break.
However, you can now rename the task inside your configuration:

# grumphp.yaml

grumphp:
    tasks:
-       phpcsfixer2:
+       phpcsfixer:

We added a way of running the PHP-CS-Fixer v1 in parallel to improve execution speed.
However, this code is not needed anymore inside the new version and might be confusing with the actual parallel implementation.
Therefore, we removed following parameters:

# grumphp.yaml

grumphp:
-     process_async_limit: 10
-     process_async_wait: 1000

Bump to Symfony 4.4

In this release, we bump the dependencies up to Symfony 4.4.
This is because the parallel system requires the Advanced console output improvements inside SF 4.1. Since that version is not supported by Symfony anymore, we decided to bump to the version 4 LTS.

If your package still requires older dependencies, you can install the grumphp-shim package which works dependency-less.

Version 0.18.1

27 May 04:57
v0.18.1
d07e59e
Compare
Choose a tag to compare

Version 0.18.0

25 Feb 18:03
v0.18.0
b3d80bb
Compare
Choose a tag to compare

Total issues resolved: 9

Upgrading custom tasks

Extended external task class

  1. Make getConfigurableOptions() static
  2. Change service configuration + tag (config -> task)

Extended an external task from TaskInterface

  1. Make getConfigurableOptions() static
  2. Register an EmptyTaskConfig during construction
  3. Replace getConfiguration() method by the getConfig() method
  4. Add immutable withConfig() method.
  5. Change service configuration + tag (config -> task)

Duplicate task with different config

  1. Remove task copy
  2. Remove service configuration of task copy
  3. Configure task copy as an alias : https://github.com/phpro/grumphp/blob/master/doc/tasks.md#run-the-same-task-twice-with-different-configuration

Version 0.17.2

10 Jan 06:36
v0.17.2
ecfc019
Compare
Choose a tag to compare

Version 0.17.1

20 Dec 07:09
v0.17.1
9c7d52b
Compare
Choose a tag to compare

Version 0.17.0

29 Nov 13:20
v0.17.0
4d7b88d
Compare
Choose a tag to compare