Commit 5cbb480
committed
bug #717 [COMPOSER] Fix strpos(): Empty needle when using bash variables (symfonyaml)
This PR was squashed before being merged into the 1.9-dev branch.
Discussion
----------
[COMPOSER] Fix strpos(): Empty needle when using bash variables
**Context**
I discovered this issue from a personal specific script, when a bash variable was not set properly.
I get this PHP error from flex:
```
[ErrorException]
strpos(): Empty needle
```
**How to reproduce**
```
symfony new test --version=lts
cd test
composer require symfony/yaml:$VERSION
```
Commits
-------
8ecdcb9 [COMPOSER] Fix strpos(): Empty needle when using bash variables2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
0 commit comments