I've been banging on the following error for awhile and I cannot tell what is wrong, please help:
Catchable fatal error: Argument 2 passed to ShapeFactory::Create() must be an array, string given, called in /home/content/14/11625314/html/AdvPHPwOOP/factory.php on line 22 and defined in /home/content/14/11625314/html/AdvPHPwOOP/ShapeFactory.php on line 11
I'm using PHP 5.3 thru goDaddy
Here's the code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Factory</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php # Script 7.4 - factory.php
// This page uses the ShapeFactory class (Script 7.2).
Ch. 7 The Factory Pattern - Catchable Fatal Error
in PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
Posted
I've been banging on the following error for awhile and I cannot tell what is wrong, please help:
Catchable fatal error: Argument 2 passed to ShapeFactory::Create() must be an array, string given, called in /home/content/14/11625314/html/AdvPHPwOOP/factory.php on line 22 and defined in /home/content/14/11625314/html/AdvPHPwOOP/ShapeFactory.php on line 11
I'm using PHP 5.3 thru goDaddy
Here's the code:
<!doctype html>