98 Commits (12b32707fa4c1fe862d809e175b8cfef7e3c0b4c)

Author SHA1 Message Date
Jordi Boggiano 8fd70d2dc4
Target ClassMapGenerator ignoring of invalid PSR classes for 2.0 4 years ago
Jordi Boggiano 3496431a6c
Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 5 years ago
Jordi Boggiano d059d90ecf
Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 5 years ago
Jordi Boggiano 502b68967a
Fix tests for PSR-fix in optimized autoloader, refs #8397 5 years ago
Jordi Boggiano f6b8643dcd
Change PSR-fix for optimized autoloader to only warn for now, refs #8397 5 years ago
Andriy Maletsky ec293adabc make optimized autoloader respect PSR standards 5 years ago
zakonnic 9f6e45051a Optimize template for striping non-php blocks 5 years ago
zakonnic ec96e5de64 Fix incorrect strip of non-php blocks in the file 5 years ago
Rob Bast 4ea8e48bf8 leading whitespace is optional, but newline is not 5 years ago
Rob Bast 25e3f6d4b9 expand regex and testcases 5 years ago
Rob Bast 971528916b fix regex for heredoc/nowdoc
* take into account relaxed changes introduced in php 7.3
  * see: 4887357269
* allow " as well as ', which was introduced in php 5.3

closes #8080
5 years ago
Jordi Boggiano 3b9d6769bf Fix class names in comments being parsed in short_open_tags files, fixes #7289 6 years ago
Petr /Peggy/ Sládek 8d06832077 Update ClassMapGenerator to work better with symlinks, fixes #7252, closes #7251 6 years ago
Jordi Boggiano bf940fb21b Fix exclude-from-classmap when a package is installed as a symlink, fixes #6397 7 years ago
Jordi Boggiano 81f65b7a2a Fix exclude-from-classmap being ignored when cwd has the wrong case on case insensitive filesystems 7 years ago
Jordi Boggiano c289776d94 Force-collapse multiple slashes into one, fixes #5387 8 years ago
Jordi Boggiano f0d67923a5 Fix classmap generator over anonymous classes extending/implementing something, fixes #5239 8 years ago
Jordi Boggiano 5822b58c1f Avoid using realpath when generating classmap, speeds up generation and keeps paths local to project in case of symlinks/path repo 8 years ago
Niels Keurentjes b059cbe37c Removed unused variables and includes, fixed functions being called with more arguments than declared. 8 years ago
Niels Keurentjes 0b55a0ca91 Can't use error_clear_last as it was introduced in PHP7. 9 years ago
Niels Keurentjes 6a53b1df42 Further reorganized messy checking code. 9 years ago
Niels Keurentjes bb08f76ad9 Use error_get_last to verify why php_strip_whitespace would return an empty string. 9 years ago
Niels Keurentjes 86fc85fe56 Add a comment explaining the use of @ instead of Silencer in this specific situation. 9 years ago
Niels Keurentjes c2d9960898 Ensure exception is thrown when classmaps are requested for corrupted or binary files. Refs #4885 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano 084f6de24e Merge remote-tracking branch 'trivago/add_exclude'
Conflicts:
	doc/04-schema.md
	src/Composer/Autoload/AutoloadGenerator.php
9 years ago
Rob Bast b523fc0b7b ran fixers 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Jordi Boggiano 943107cfe7 Load most specific namespaces always, and dependents before dependencies when building classmaps
This also adds notifications of duplicate classes
9 years ago
Jordi Boggiano e73448ae1e Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Jordi Boggiano dbfd47eeca CS fixes 9 years ago
msiebeneicher 7522a33079 Merge branch 'master' of https://github.com/composer/composer into add_exclude
# By Jordi Boggiano (30) and others
# Via Jordi Boggiano (37) and Morgan Campbell (1)
* 'master' of https://github.com/composer/composer: (83 commits)
  Update 01-basic-usage.md
  Revert 331425bcb3 as well, fixes #3612
  Revert "Disable overwrites when no-ansi is present, fixes #3612"
  Update deps
  Use justinrainbow/json-schema 1.4
  Improved wording
  Fix docs basic-auth => http-basic
  Add test for Generics class
  Single variable for traits and enums
  Use HHVM_VERSION instead of HPHP_VERSION
  Add support for using classmap to autoload Hack enums
  Re-use existing autoloader suffix if available, fixes #3701
  Report Travis CI build success early
  Test on HHVM nightly releases. Allow to fail.
  Make parseJson safer
  Use get home from Config instead of factory
  Fix env override regression, fixes #3820
  [create-project] Used no progress value for dependencies
  Add docBlock and fix CS
  Fix output of first line of progress when output is not decorated, refs #3818
  ...
9 years ago
Fred Emmott bdf51ab16d Single variable for traits and enums 9 years ago
Fred Emmott cb1ea889d6 Use HHVM_VERSION instead of HPHP_VERSION 9 years ago
Fred Emmott 33ea86573e Add support for using classmap to autoload Hack enums
fixes composer/composer#3823

Ran tests with both PHP5.5.9-1ubuntu4.5 and HHVM 3.6. Test fails on HHVM only
if I back out the ClassMapGenerator.php change.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
msiebeneicher 3682a9f5a7 * Cleanup code comments 10 years ago
msiebeneicher dad6b05ca7 Merge branches 'add_exclude' and 'master' of https://github.com/trivago/composer into add_exclude
* Resolve conflicts and update unit test
10 years ago
msiebeneicher f28785a49d Merge branches 'add_exclude' and 'master' of https://github.com/trivago/composer into add_exclude
* 'add_exclude' of https://github.com/trivago/composer:

# By Jordi Boggiano (239) and others
# Via Jordi Boggiano (184) and others
* 'master' of https://github.com/trivago/composer: (638 commits)
  Simplified syntax
  github deprecation changes
  fix bug in GitDriver::supports for remote repo
  strict check, testcase(s)
  Fix regex matching and add more tests for addSubNode, refs #3721, fixes #3716
  solve edge case for `composer remove vendor/pkg`
  chmod 644 src/Composer/Command/RemoveCommand.php
  Avoid failing on composer show of lazy providers
  Show more info when a download fails
  Add notion of autoloader skipping autoload-dev rules
  Satis grammar fix.
  remove unused statements
  removed needless output param
  + limit git ls-remote to heads + escape repo url
  add check for remote Repository in GitDriver::supports
  suppress the prefix
  Improve notice about /usr/local/bin
  Reuse current file permissions
  Add the P character to the regex pattern
  Added deprecated warning for the dev option
  ...

Conflicts:
	src/Composer/Autoload/AutoloadGenerator.php
	src/Composer/Autoload/ClassMapGenerator.php
10 years ago
Jordi Boggiano 4dfa3c469e Fix class map generator handling of missing files 10 years ago
Jordi Boggiano a227523c4f Fix php_strip_whitespace bugginess, fixes #3030 10 years ago
Jordi Boggiano 799876dd55 Allow dashes in class names for HHVM support, fixes #2967 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 05d9912f97 Ignore classes in ClassMapGenerator 10 years ago
Fabien Potencier 12421dd6b7 fixed class map generator when using a heredoc with spaces 10 years ago
Jordi Boggiano 14f35e812c Merge pull request #2912 from ckwalsh/master
Support generating class map for XHP classes
10 years ago
Jordi Boggiano 49d4054e51 Handle files with no php at all, fixes #2910 10 years ago
Cullen Walsh 57d9e9852d Support generating class map for XHP classes 10 years ago
Denis Sokolov 836534067b Avoid ambiguity warning for example directories as well
In particular, PEAR repositories use a classmap and example directories trigger
multiple false positive warnings.
10 years ago