Upgrading phpro/grumphp 0.19 to 0.20
Breakingv0.19.1 → v0.20.0Platform1New3Changed2Fixed2Other2
BreakingUpgrade verdict
A platform requirement change.
In plain terms
- This version no longer works on PHP 7.2; you need a newer PHP version.
Must act 1 item needs code or config changes
PHP requirement changed in v0.20.0: ^7.2 → ^7.3.
Adds symfony/dotenv ~4.4 || ~5.0.
What you must change
Platform1
Drops support for PHP 7.2 because of dependencies.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- changed:
method FilesCollection.ensureFiles(self $files): self → method FilesCollection.ensureFiles(self $files): FilesCollection - changed:
method FilesCollection.filterByFileList(Traversable $fileList): self → method FilesCollection.filterByFileList(Traversable $fileList): FilesCollection - changed:
method FilesCollection.ignoreSymlinks(): self → method FilesCollection.ignoreSymlinks(): FilesCollection - changed:
method ProcessArgumentsCollection.addOptionalMixedArgument(string $argument, $value) → method ProcessArgumentsCollection.addOptionalMixedArgument(string $argument, $value): void - added:
method FilesCollection.getIterator(): \ArrayIterator
- changed:
method GrumPHPPlugin.deactivate(Composer $composer, IOInterface $io) → method GrumPHPPlugin.deactivate(Composer $composer, IOInterface $io): void - changed:
method GrumPHPPlugin.uninstall(Composer $composer, IOInterface $io) → method GrumPHPPlugin.uninstall(Composer $composer, IOInterface $io): void
- removed:
class ExecutableFinderConfigurator - removed:
constructor ExecutableFinderConfigurator(Paths $paths) - removed:
method ExecutableFinderConfigurator.configure(ExecutableFinder $executableFinder): ExecutableFinder
- added:
class DotEnvRegistrar - added:
class DotEnvSerializer - added:
class PathsRegistrar - added:
static method DotEnvRegistrar.register(EnvConfig $config): void - added:
static method DotEnvSerializer.serialize(array $env): string - added:
static method PathsRegistrar.prepend(string ...$paths): void
- added:
class EnvConfig - added:
constructor EnvConfig(array $files, array $variables, array $paths) - added:
method EnvConfig.getFiles(): array - added:
method EnvConfig.getPaths(): array - added:
method EnvConfig.getVariables(): array - added:
method EnvConfig.hasFiles(): bool - added:
method EnvConfig.hasPaths(): bool - added:
method EnvConfig.hasVariables(): bool - added:
static method EnvConfig.fromArray(array $config): self
- changed:
protected method InitCommand.useExoticConfigFile() → protected method InitCommand.useExoticConfigFile(): ?string
- changed:
method EventDispatcherInterface.dispatch(Event $event, string $name = …) → method EventDispatcherInterface.dispatch(Event $event, string $name = …): void
- changed:
static method InvalidArgumentException.unknownTestSuite($testSuiteName): self → static method InvalidArgumentException.unknownTestSuite(string $testSuiteName): self - changed:
static method ParallelException.fromThrowable(\Throwable $error) → static method ParallelException.fromThrowable(\Throwable $error): self - changed:
static method ParallelException.fromVerboseThrowable(\Throwable $error) → static method ParallelException.fromVerboseThrowable(\Throwable $error): self
- changed:
method ExtensionInterface.load(ContainerBuilder $container) → method ExtensionInterface.load(ContainerBuilder $container): void
- removed:
method PhpCsFixerFormatter.formatSuggestion(Process $process): string - added:
class ComposerNormalizeFormatter extends RawProcessFormatter - added:
method ComposerNormalizeFormatter.formatErrorMessage(string $fixerCommand): string
- added:
class EnrichedGuessedPathsFromDotEnvLocator - added:
constructor EnrichedGuessedPathsFromDotEnvLocator(Filesystem $filesystem) - added:
method EnrichedGuessedPathsFromDotEnvLocator.locate(GuessedPaths $guessedPaths): GuessedPaths
- changed:
method ConfigurableVisitorInterface.configure(array $options) → method ConfigurableVisitorInterface.configure(array $options): void - changed:
method ContextAwareVisitorInterface.setContext(ParserContext $context) → method ContextAwareVisitorInterface.setContext(ParserContext $context): void
- removed:
final class ProcessUtils - removed:
static method ProcessUtils.escapeArgument(string $argument): string - removed:
static method ProcessUtils.escapeArguments(array $arguments): string - removed:
static method ProcessUtils.escapeArgumentsFromString(string $arguments): string - added:
static method ProcessFactory.fromScalar($arguments): Process
- added:
protected property ComposerNormalize.formatter