Package Details: php-cs-fixer 3.0.1-1

Git Clone URL: https://aur.archlinux.org/php-cs-fixer.git (read-only, click to copy)
Package Base: php-cs-fixer
Description: Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
Upstream URL: https://github.com/FriendsOfPHP
Keywords: php
Licenses: MIT
Submitter: bgaleotti
Maintainer: bgaleotti (sanduhrs)
Last Packager: sanduhrs
Votes: 26
Popularity: 0.052779
First Submitted: 2012-08-10 16:53
Last Updated: 2021-08-03 09:12

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

tjbp commented on 2021-06-15 20:48

@Krisque: if php-humbug-box-bin is failing to build then your comment belongs on that package rather than this one ;)

Krisque commented on 2021-06-15 20:34

It doesn't work for me: "box.phar ... Failed" "LICENSE ... Passed" "Failed to compile php-humbug-box-bin"

vladimir commented on 2021-04-26 08:40

If this is built in clean chroot it does not work.

To fix the issue add dependency on php-intl and run box in build function this way: php -n -d phar.readonly=Off -d extension=intl /usr/bin/box compile

-n is necessary for people who have xdebug enabled and intl disabled. If it is not present box restart itself wih modified php.ini to disable xdebug but intl disabled again.

Skatox commented on 2021-04-01 15:10

You have to increase the PHP version on depends array. Now it should be:

depends=("php>=7.2")

tjbp commented on 2021-03-12 13:30

Any chance of an update to 2.18 please? 2.17 doesn't have PHP 8 support, which is now stable and used by the php package.

Remedan commented on 2020-11-05 08:49

The php-composer dependency doesn't exist any more. Replacing with composer seems to work.

diff --git i/PKGBUILD w/PKGBUILD
index d332769..742da57 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -3,14 +3,14 @@

 _pkgname=php-cs-fixer
 pkgname=${_pkgname}
-pkgver=2.16.4
+pkgver=2.16.6
 pkgrel=1
 pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)."
 url="http://cs.sensiolabs.org/"
 license=("MIT")
 arch=("any")
 depends=("php>=5.6" "php>=7")
-makedepends=("php-humbug-box-bin" "php-composer" "git")
+makedepends=("php-humbug-box-bin" "composer" "git")
 source=("${_pkgname}"::"git+https://github.com/FriendsOfPHP/PHP-CS-Fixer#tag=v${pkgver}")
 md5sums=('SKIP')

Magotchi commented on 2020-05-01 14:20

This is not necessarily a package bug, as it may well be a pikaur bug, but does anybody know why, when I build this package in pikaur, it tries to use sudo right after the "Updating dependencies" step, as follows?:

==> Validating source files with md5sums...
    php-cs-fixer ... Skipped
==> Extracting sources...
  -> Creating working copy of php-cs-fixer git repo...
Cloning into 'php-cs-fixer'...
done.
Switched to a new branch 'makepkg'
==> Starting build()...
Loading composer repositories with package information
Updating dependencies
[sudo] password for ...:

This does not happen if I freshly clone it and use makepkg.

Edit: It also does not happen in "yay". I guess I'll figure it out and give pikaur a report.

Edit: Hmm. Now when I try it again in pikaur, I can't reproduce it. Weird. This happens to me every time this package needs to update.

hriad commented on 2019-01-13 07:18

Thanks for the diff @danger89

danger89 commented on 2019-01-05 01:50

Yes, Finally we have v2.14.0 Sunrise, supporting 7.3 now officially. Diff for pkgbuild:

diff --git a/PKGBUILD b/PKGBUILD
index 05acdbe..042304d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@

 _pkgname=php-cs-fixer
 pkgname=${_pkgname}
-pkgver=2.13.1
+pkgver=2.14.0
 pkgrel=1
 pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)."
 url="http://cs.sensiolabs.org/"
 license=("MIT")
 arch=("any")
-depends=("php>=5.6" "php<7.3")
+depends=("php>=5.6" "php>=7")
 makedepends=("php-box" "php-composer" "git")
 source=("${_pkgname}"::"git+https://github.com/FriendsOfPHP/PHP-CS-Fixer#tag=v${pkgver}")
 md5sums=('SKIP')

macfly commented on 2018-03-01 15:44

Thanks for your quick update