1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

use var_dump instead of var_export

This commit is contained in:
Piotr Plenik
2017-05-31 10:11:49 +02:00
parent ed9289be29
commit d4dda481e9

View File

@@ -549,8 +549,8 @@ function splitIntoFirstAndLastName($name) {
$name = 'Ryan McDermott';
$newName = splitIntoFirstAndLastName($name);
var_export($name); // 'Ryan McDermott';
var_export($newName); // ['Ryan', 'McDermott'];
var_dump($name); // 'Ryan McDermott';
var_dump($newName); // ['Ryan', 'McDermott'];
```
**[⬆ back to top](#table-of-contents)**
@@ -1386,7 +1386,7 @@ class Car {
}
public function dump() {
var_export($this->make, $this->model, $this->color);
var_dump($this->make, $this->model, $this->color);
}
}
@@ -1430,7 +1430,7 @@ class Car {
}
public function dump() {
var_export($this->make, $this->model, $this->color);
var_dump($this->make, $this->model, $this->color);
}
}