Skip to content

Upgrading phpro/grumphp 0.20 to 0.21

Breakingv0.20.0 → v0.21.0Breaking2New4Changed6Fixed1Other1

BreakingUpgrade verdict

1 breaking change.

  • Renames the ECS whitelist_patterns option to paths and adds files_on_pre_commit.
1 item needs code or config changes
Breaking1
Renames the ECS whitelist_patterns option to paths and adds files_on_pre_commit.
whitelist_patternspathsfiles_on_pre_commitecs

Generated by DepDelta from published PHP source. Not mixed with prose notes.

  • added: method FilesCollection.toFileList(): string
  • changed: constructor RunCommand(TestSuiteCollection $testSuites, RegisteredFiles $registeredFilesLocator, TaskRunner $taskRunner) → constructor RunCommand(TestSuiteCollection $testSuites, StdInFiles $stdInFileLocator, RegisteredFiles $registeredFilesLocator, TaskRunner $taskRunner)
  • changed: constructor CommitMsgCommand(TestSuiteCollection $testSuites, ChangedFiles $changedFilesLocator, TaskRunner $taskRunner, Filesystem $filesystem, Paths $paths) → constructor CommitMsgCommand(TestSuiteCollection $testSuites, StdInFiles $stdInFilesLocator, ChangedFiles $changedFilesLocator, TaskRunner $taskRunner, Filesystem $filesystem, Paths $paths)
  • changed: constructor PreCommitCommand(TestSuiteCollection $testSuites, ChangedFiles $changedFilesLocator, TaskRunner $taskRunner) → constructor PreCommitCommand(TestSuiteCollection $testSuites, StdInFiles $stdInFilesLocator, ChangedFiles $changedFilesLocator, TaskRunner $taskRunner)
  • added: class ExecutableNotFoundException extends RuntimeException
  • added: class ProcessException extends RuntimeException
  • added: static method ExecutableNotFoundException.forCommand(string $command): self
  • added: static method ProcessException.tmpFileCouldNotBeCreated(): self
  • added: class FixableProcessResultProvider
  • added: static method FixableProcessResultProvider.provide(TaskResultInterface $taskResult, callable $fixerProcessBuilder, array $successExitCodes = …): FixableTaskResult
  • removed: class ComposerNormalizeFormatter extends RawProcessFormatter
  • removed: class ESLintFormatter implements ProcessFormatterInterface
  • removed: method ComposerNormalizeFormatter.formatErrorMessage(string $fixerCommand): string
  • removed: method ESLintFormatter.format(Process $process): string
  • removed: method ESLintFormatter.formatErrorMessage(string $message, string $suggestion): string
  • removed: method PhpCsFixerFormatter.formatErrorMessage(array $messages, array $suggestions): string
  • removed: method PhpcsFormatter.formatManualFixingOutput(Process $fixProcess): string
  • changed: constructor RegisteredFiles(GitRepository $repository, Paths $paths) → constructor RegisteredFiles(GitRepository $repository, Paths $paths, ListedFiles $listedFiles)
  • added: class ListedFiles
  • added: class StdInFiles
  • added: constructor ListedFiles(Paths $paths)
  • added: constructor StdInFiles(ChangedFiles $changedFilesLocator, ListedFiles $listedFiles)
  • added: method ListedFiles.locate(string $fileList): FilesCollection
  • added: method StdInFiles.locate(string $stdIn): FilesCollection
  • added: class InputWritingProcessRunner
  • added: class TmpFileUsingProcessRunner
  • added: static method InputWritingProcessRunner.run(callable $processBuilder, callable $writer): Process
  • added: static method TmpFileUsingProcessRunner.run(callable $processBuilder, callable $writer): Process
  • added: method FixableTaskResult.withAppendedMessage(string $additionalMessage): TaskResultInterface
  • added: method TaskResult.withAppendedMessage(string $additionalMessage): TaskResultInterface
  • added: method TaskResultInterface.withAppendedMessage(string $message): self
  • removed: protected property ComposerNormalize.formatter
  • removed: protected property ESLint.formatter
  • added: class Tester extends AbstractExternalTask
  • added: method Tester.canRunInContext(ContextInterface $context): bool
  • added: method Tester.run(ContextInterface $context): TaskResultInterface
  • added: static method Tester.getConfigurableOptions(): OptionsResolver
  • changed: constructor CommitMessage() → constructor CommitMessage(GitRepository $repository)
  • added: method Filesystem.backupFile(string $fileName, ?string $hashOfNewContent = …): void