Update test php file
timw4mail/php-kilo/pipeline/head There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2022-08-23 15:33:11 -04:00
parent f2177e0b40
commit 5598636df1
2 changed files with 9 additions and 3 deletions

View File

@ -630,7 +630,7 @@ class Row {
$char = $token['char'];
$charLen = strlen($char);
if ($charLen === 0 || $offset >= $this->rsize)
if ($charLen === 0)
{
continue;
}

View File

@ -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(); ?>