These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | if (!file_exists(__DIR__ . '/vendor/autoload.php')) { |
||
4 | print('Autoloader not found! Did you follow the instructions from the INSTALL.md?<br />'); |
||
5 | print('(If you want to keep the old version, switch to the <tt>legacy</tt> branch by running: <tt>git checkout legacy</tt>'); |
||
6 | exit(); |
||
7 | } |
||
8 | |||
9 | require_once __DIR__ . '/vendor/autoload.php'; |
||
10 | |||
11 | use \SSpkS\Config; |
||
12 | use \SSpkS\Handler; |
||
13 | |||
14 | $config = new Config(__DIR__, 'conf/sspks.yaml'); |
||
15 | $config->baseUrl = 'http' . ($_SERVER['HTTPS']?'s':'') . '://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/')) . '/'; |
||
0 ignored issues
–
show
|
|||
16 | |||
17 | $handler = new Handler($config); |
||
18 | $handler->handle(); |
||
19 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.