Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#6969-dead-code-removal' …
Browse files Browse the repository at this point in the history
…into develop

Close zendframework/zendframework#6969
  • Loading branch information
Ocramius committed Dec 8, 2014
3 parents 1caf4ec + abd0925 + 8bd60a3 commit 1cb6d55
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Reader/Ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function fromFile($filename)
$this->directory = dirname($filename);

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) use ($filename) {
function ($error, $message = '') use ($filename) {
throw new Exception\RuntimeException(
sprintf('Error reading INI file "%s": %s', $filename, $message),
$error
Expand Down Expand Up @@ -101,7 +101,7 @@ public function fromString($string)
$this->directory = null;

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) {
function ($error, $message = '') {
throw new Exception\RuntimeException(
sprintf('Error reading INI string: %s', $message),
$error
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function fromFile($filename)
$this->directory = dirname($filename);

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) use ($filename) {
function ($error, $message = '') use ($filename) {
throw new Exception\RuntimeException(
sprintf('Error reading XML file "%s": %s', $filename, $message),
$error
Expand Down Expand Up @@ -100,7 +100,7 @@ public function fromString($string)
$this->directory = null;

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) {
function ($error, $message = '') {
throw new Exception\RuntimeException(
sprintf('Error reading XML string: %s', $message),
$error
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function toFile($filename, $config, $exclusiveLock = true)
}

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) use ($filename) {
function ($error, $message = '') use ($filename) {
throw new Exception\RuntimeException(
sprintf('Error writing to "%s": %s', $filename, $message),
$error
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/PhpArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function toFile($filename, $config, $exclusiveLock = true)
}

set_error_handler(
function ($error, $message = '', $file = '', $line = 0) use ($filename) {
function ($error, $message = '') use ($filename) {
throw new Exception\RuntimeException(
sprintf('Error writing to "%s": %s', $filename, $message),
$error
Expand Down

0 comments on commit 1cb6d55

Please sign in to comment.