1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-30 16:09:03 +02:00

Merge pull request #7 from jupeter/var_dump

Use var_dump instead of var_export
This commit is contained in:
Piotr Plenik
2017-05-31 10:13:05 +02:00
committed by GitHub

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);
}
}