This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier b13671957b bug #22985 [Config] Allow empty globs (nicolas-grekas)
This PR was merged into the 3.3 branch.

Discussion
----------

[Config] Allow empty globs

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22950
| License       | MIT
| Doc PR        | -

This considers globs as valid even if they return no matches when they have a prefix (and when that prefix exists, according to `$ignoreErrors`).
This means there is an edge-case:
`*.abc` with at least one match is OK, but when it has no match, it falls back to regular import, then usually will fil.
But rewriting this to `./*.abc` resolves the ambiguity and turns this into a glob that won't fail if no matches are found.

This should provide the expected behavior in most cases (but ambiguous described one of course).

Commits
-------

c5b9c1a8c8 [Config] Allow empty globs
2017-05-31 11:07:24 -07:00
..
Asset Merge branch '3.2' 2017-05-01 08:01:29 -07:00
BrowserKit Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Cache Remove extra arg in call to TraceableAdapter::start() 2017-05-31 13:48:12 +02:00
ClassLoader Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Config [Config] Allow empty globs 2017-05-31 10:49:17 +02:00
Console Merge branch '3.2' into 3.3 2017-05-28 07:08:56 -07:00
CssSelector Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Debug [Profiler] Fix text selection on exception pages 2017-05-30 18:34:49 +02:00
DependencyInjection Fixing a bug where an autowiring exception was thrown even when that service was removed 2017-05-31 09:52:17 -04:00
DomCrawler Merge branch '3.2' into 3.3 2017-05-25 16:10:31 -07:00
Dotenv Fix misprint. 2017-04-27 10:47:28 +03:00
EventDispatcher Merge branch '3.2' 2017-05-04 14:23:07 +02:00
ExpressionLanguage Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Filesystem Merge branch '3.2' into 3.3 2017-05-28 07:08:56 -07:00
Finder Merge branch '3.2' into 3.3 2017-05-25 16:10:31 -07:00
Form Merge branch '3.2' into 3.3 2017-05-29 11:50:47 -07:00
HttpFoundation [HttpFoundation] Add Request::HEADER_X_FORWARDED_AWS_ELB const 2017-05-25 15:39:26 +02:00
HttpKernel Support unknown compiler log format 2017-05-31 12:12:10 +02:00
Inflector Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Intl Merge branch '3.2' into 3.3 2017-05-28 12:56:20 +02:00
Ldap Merge branch '3.2' into 3.3 2017-05-21 10:56:50 +02:00
OptionsResolver Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Process [Process] Fixed incorrectly escaping arguments on Windows when inheritEnvironmentVariables is set to false 2017-05-22 14:32:03 +02:00
PropertyAccess Merge branch '3.2' into 3.3 2017-05-21 15:55:13 +02:00
PropertyInfo Merge branch '3.2' 2017-04-19 22:25:39 +02:00
Routing Merge branch '3.2' into 3.3 2017-05-24 13:35:23 +02:00
Security Merge branch '3.2' into 3.3 2017-05-21 10:56:50 +02:00
Serializer [Serializer] Remove a useless legacy annotation 2017-05-22 11:36:51 +02:00
Stopwatch Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Templating Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Translation fix docblock position 2017-05-22 09:42:36 +02:00
Validator [FrameworkBundle][Validator] Move the PSR-11 factory to the component 2017-05-26 10:48:50 +02:00
VarDumper [Profiler][VarDumper] Fix searchbar css when in toolbar 2017-05-22 19:32:12 +02:00
WebLink fail when detecting risky tests 2017-04-12 07:15:58 -07:00
Workflow Merge branch '3.2' 2017-05-11 09:47:52 -07:00
Yaml Merge branch '3.2' into 3.3 2017-05-28 12:56:20 +02:00