Update test php file
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f2177e0b40
commit
5598636df1
@ -630,7 +630,7 @@ class Row {
|
||||
|
||||
$char = $token['char'];
|
||||
$charLen = strlen($char);
|
||||
if ($charLen === 0 || $offset >= $this->rsize)
|
||||
if ($charLen === 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
10
test.php
10
test.php
@ -2,6 +2,7 @@
|
||||
|
||||
interface Ifoo {}
|
||||
|
||||
// Let's see emoji! 🕯️😸⛩⛪
|
||||
abstract class Foo implements Ifoo {
|
||||
/**
|
||||
* @param int $a
|
||||
@ -64,6 +65,10 @@ trait Baz {
|
||||
}
|
||||
}
|
||||
|
||||
class BazFoo {
|
||||
use Baz;
|
||||
}
|
||||
|
||||
$square = fn (int $x) => $x ** 2;
|
||||
|
||||
foreach ([-1, 0, 1, 2] as $x)
|
||||
@ -100,7 +105,7 @@ $q = ($x !== 2)
|
||||
|
||||
/*
|
||||
Heredoc
|
||||
*/$z = $x + $y;
|
||||
*/$z = $x + $y[0];
|
||||
$sql = <<<SQL
|
||||
SELECT * FROM "foo" WHERE "bar"='baz' AND id={$x};
|
||||
SQL;
|
||||
@ -117,7 +122,8 @@ TEMPLATE;
|
||||
<title>HTML</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= $_SERVER['HTTP_HOST'] ?></h1>
|
||||
<h1>Test</h1>
|
||||
<div><?php $bf = new BazFoo(); print_r($bf->about()) ?></div>
|
||||
</body>
|
||||
</html>
|
||||
<?php exit(); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user