DB\IO dbReturn method has a third parameter to set read only assoc and not number data from the query Install basic composer for trying out psalm setting phpan/phpstan for basic static checking and do basic clean up on all of the files
35 lines
536 B
PHP
Executable File
35 lines
536 B
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
namespace Foo;
|
|
|
|
class FooBar
|
|
{
|
|
public $foo = '';
|
|
|
|
public function __construct()
|
|
{
|
|
$this->foo = 'BAR';
|
|
}
|
|
|
|
public function otherBarBar($wrong)
|
|
{
|
|
echo "B: $wrong<br>";
|
|
}
|
|
|
|
public function barBar($wrong)
|
|
{
|
|
echo "B: $wrong<br>";
|
|
}
|
|
}
|
|
|
|
$foo = $bar ?? 'EMPTY';
|
|
echo "BAR: ".$foo."<br>";
|
|
// define('DS', DIRECTORY_SEPARATOR);
|
|
$ds = defined('DS') ? DS : DIRECTORY_SEPARATOR;
|
|
$du = DS ?? DIRECTORY_SEPARATOR;
|
|
echo "DS is: ".$ds."<br>";
|
|
|
|
echo "SERVER HOST: ".$_SERVER['HTTP_HOST']."<br>";
|
|
|
|
// __END__
|