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

Commit

Permalink
Merge branch 'hotfix/coding-style-for-closures' of git://github.com/l…
Browse files Browse the repository at this point in the history
…ocalheinz/zf2 into hotfix/3130
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Reader/Ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function fromFile($filename)
$this->directory = dirname($filename);

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

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

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

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

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

0 comments on commit 15e7f96

Please sign in to comment.