Skip to content

Commit 03e510d

Browse files
committed
fix - errors in php 8.4
1 parent 30e2277 commit 03e510d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

fmt.stub.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function format($message);
3030

3131
interface HelperInterface {
3232

33-
public function setHelperSet(HelperSet $helperSet = null);
33+
public function setHelperSet($helperSet = null);
3434

3535
public function getHelperSet();
3636

@@ -46,7 +46,7 @@ public function getName();
4646
abstract class Helper implements HelperInterface {
4747
protected $helperSet = null;
4848

49-
public function setHelperSet(HelperSet $helperSet = null) {
49+
public function setHelperSet($helperSet = null) {
5050
$this->helperSet = $helperSet;
5151
}
5252

@@ -129,7 +129,7 @@ class OutputFormatterStyleStack {
129129

130130
private $emptyStyle;
131131

132-
public function __construct(OutputFormatterStyleInterface $emptyStyle = null) {
132+
public function __construct($emptyStyle = null) {
133133
$this->emptyStyle = $emptyStyle ?: new OutputFormatterStyle();
134134
$this->reset();
135135
}
@@ -142,7 +142,7 @@ public function push(OutputFormatterStyleInterface $style) {
142142
$this->styles[] = $style;
143143
}
144144

145-
public function pop(OutputFormatterStyleInterface $style = null) {
145+
public function pop($style = null) {
146146
if (empty($this->styles)) {
147147
return $this->emptyStyle;
148148
}
@@ -536,7 +536,7 @@ abstract class Output implements OutputInterface {
536536
private $verbosity;
537537
private $formatter;
538538

539-
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null) {
539+
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, $formatter = null) {
540540
$this->verbosity = null === $verbosity ? self::VERBOSITY_NORMAL : $verbosity;
541541
$this->formatter = $formatter ?: new OutputFormatter();
542542
$this->formatter->setDecorated($decorated);
@@ -623,7 +623,7 @@ abstract protected function doWrite($message, $newline);
623623
class StreamOutput extends Output {
624624
private $stream;
625625

626-
public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null) {
626+
public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, $formatter = null) {
627627
if (!is_resource($stream) || 'stream' !== get_resource_type($stream)) {
628628
throw new \InvalidArgumentException('The StreamOutput class needs a stream as its first argument.');
629629
}
@@ -668,7 +668,7 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface {
668668

669669
private $stderr;
670670

671-
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null) {
671+
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, $formatter = null) {
672672
$outputStream = $this->hasStdoutSupport() ? 'php://stdout' : 'php://output';
673673
$errorStream = $this->hasStderrSupport() ? 'php://stderr' : 'php://output';
674674

@@ -10694,7 +10694,7 @@ class OrderAndRemoveUseClauses extends AdditionalPass {
1069410694

1069510695
private $sortFunction = null;
1069610696

10697-
public function __construct(callable $sortFunction = null) {
10697+
public function __construct($sortFunction = null) {
1069810698
$this->sortFunction = $sortFunction;
1069910699
if (null == $sortFunction) {
1070010700
$this->sortFunction = function ($useStack) {

0 commit comments

Comments
 (0)