Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! fix loading with non root config
  • Loading branch information
TomasVotruba committed Jan 10, 2020
1 parent 91452ef commit 0e4d360
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
13 changes: 13 additions & 0 deletions packages/EasyCodingStandard/compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ php ../tmp/ecs.phar
```

Please note that running the compiler will change the contents of `composer.json` file and `vendor` directory. Revert those changes after running it.

## Notes

This section si needed in `composer.json`, because it was causing autolaoding bugs.
Box aliases existing Symfony stubs to php, see https://ayesh.me/composer-replace-polyfills.

```json
{
"replace": {
"symfony/polyfill-php70": "*"
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ private function fixComposerJson(string $composerJsonFile): void
$json = $this->replaceDevSymplifyVersionWithLastStableVersion($json);
$json = $this->fixPhpCodeSnifferAutoloading($json);

# this was causing autolaoding bugs because of box aliasing existing Symfony stubs to php
# see https://ayesh.me/composer-replace-polyfills
$json['replace'] = [
'symfony/polyfill-php70' => '*',
];

$json = $this->removeDevContent($json);
$this->cleanupPhpCsFixerBreakingFiles();

Expand Down
3 changes: 3 additions & 0 deletions packages/EasyCodingStandard/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"Symplify\\EasyCodingStandard\\Tests\\": "tests"
}
},
"replace": {
"symfony/polyfill-php70": "*"
},
"extra": {
"branch-alias": {
"dev-master": "7.3-dev"
Expand Down

0 comments on commit 0e4d360

Please sign in to comment.