/home/homes/antoinecormier/sites/php/bre01-php-j7/Classes et BDD/index.php:8:
array (size=5)
'id' => int 1
'first_name' => string 'John' (length=4)
'last_name' => string 'Lennon' (length=6)
'email' => string 'john.lennon@test.fr' (length=19)
'secret_identity_id' => int 2
Clark
John
/home/homes/antoinecormier/sites/php/bre01-php-j7/Classes et BDD/index.php:41:
array (size=4)
0 =>
object(User)[2]
private ?int 'id' => int 1
private SecretIdentity 'secretIdentity' =>
object(SecretIdentity)[8]
private ?int 'id' => int 2
private string 'superName' => string '' (length=0)
private string 'city' => string '' (length=0)
private string 'firstName' => string 'John' (length=4)
private string 'lastName' => string 'Lennon' (length=6)
private string 'email' => string 'john.lennon@test.fr' (length=19)
1 =>
object(User)[9]
private ?int 'id' => int 2
private SecretIdentity 'secretIdentity' =>
object(SecretIdentity)[10]
private ?int 'id' => int 4
private string 'superName' => string '' (length=0)
private string 'city' => string '' (length=0)
private string 'firstName' => string 'Bruce' (length=5)
private string 'lastName' => string 'Wayne' (length=5)
private string 'email' => string 'bruce.wayne@test.fr' (length=19)
2 =>
object(User)[11]
private ?int 'id' => int 3
private SecretIdentity 'secretIdentity' =>
object(SecretIdentity)[12]
private ?int 'id' => int 1
private string 'superName' => string '' (length=0)
private string 'city' => string '' (length=0)
private string 'firstName' => string 'Diana' (length=5)
private string 'lastName' => string 'Prince' (length=6)
private string 'email' => string 'diana.prince@test.fr' (length=20)
3 =>
object(User)[13]
private ?int 'id' => int 4
private SecretIdentity 'secretIdentity' =>
object(SecretIdentity)[14]
private ?int 'id' => int 5
private string 'superName' => string '' (length=0)
private string 'city' => string '' (length=0)
private string 'firstName' => string 'Clark' (length=5)
private string 'lastName' => string 'Kent' (length=4)
private string 'email' => string 'clark.kent@test.fr' (length=18)
( ! ) Fatal error: Uncaught Error: Object of class SecretIdentity could not be converted to string in /home/homes/antoinecormier/sites/php/bre01-php-j7/Classes et BDD/User.class.php on line 71 |
( ! ) Error: Object of class SecretIdentity could not be converted to string in /home/homes/antoinecormier/sites/php/bre01-php-j7/Classes et BDD/User.class.php on line 71 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0096 | 359928 | {main}( ) | .../index.php:0 |
2 | 0.1168 | 437616 | User->save( $db = class PDO { } ) | .../index.php:47 |
3 | 0.1168 | 438472 | execute( $params = ['email' => 'clark.kent@test.fr', 'first_name' => 'Clark', 'last_name' => 'Kent', 'secret_identity' => class SecretIdentity { private ?int $id = NULL; private string $superName = ''; private string $city = '' }] ) | .../User.class.php:71 |