Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in release.inc #948

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions releases/8.3/release.inc
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ final class MyTest extends TestCase {
$this->logFile = fopen('/tmp/logfile', 'w');
}

protected function taerDown(): void {
protected function tearDown(): void {
fclose($this->logFile);
unlink('/tmp/logfile');
}
}

// The log file will never be removed, because the
// method name was mistyped (taerDown vs tearDown).
// method name was mistyped (tearDown vs tearDown).
PHP

); ?>
Expand All @@ -174,13 +174,13 @@ final class MyTest extends TestCase {
}

#[\Override]
protected function taerDown(): void {
protected function tearDown(): void {
fclose($this->logFile);
unlink('/tmp/logfile');
}
}

// Fatal error: MyTest::taerDown() has #[\Override] attribute,
// Fatal error: MyTest::tearDown() has #[\Override] attribute,
// but no matching parent method exists
PHP
); ?>
Expand Down