Created
October 11, 2021 05:40
-
-
Save devlubinets/e6303821052157a0d4bcb81aefc278c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BuilderWebSite extends Builder implements IBuilderWebSite | |
{ | |
private ProductWebSite $product; | |
public function createTitle():void | |
{ | |
$this->product->parts["title"] = "<title>WebSite</title>"; | |
} | |
} | |
#PHP Fatal error: Uncaught TypeError: Cannot auto-initialize an stdClass inside property #BuilderWebSite::$product of type ProductWebSite in /var/www/html/amanda_media/Builder/BuilderWebSite.php:12 | |
#Stack trace: | |
#0 /var/www/html/amanda_media/Builder/Director.php(26): BuilderWebSite->createTitle() | |
#1 /var/www/html/amanda_media/Builder/index.php(13): Director->manyMoneyWebSite() | |
#2 {main} | |
# thrown in /var/www/html/amanda_media/Builder/BuilderWebSite.php on line 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment