mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
30 lines
589 B
PHP
30 lines
589 B
PHP
<?php
|
|
namespace Psalm\Tests;
|
|
|
|
use Psalm\Context;
|
|
|
|
class BadFormatTest extends TestCase
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function testMissingSemicolon()
|
|
{
|
|
$this->addFile(
|
|
'somefile.php',
|
|
'<?php
|
|
class A {
|
|
/** @var int|null */
|
|
protected $hello;
|
|
|
|
/** @return void */
|
|
function foo() {
|
|
$this->hello = 5
|
|
}
|
|
}'
|
|
);
|
|
|
|
$this->analyzeFile('somefile.php', new Context());
|
|
}
|
|
}
|