mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
ead107fa9e
* add native return types * redundant phpdoc
28 lines
391 B
PHP
28 lines
391 B
PHP
<?php
|
|
|
|
const ROOT_CONST_CONSTANT = 5;
|
|
define('ROOT_DEFINE_CONSTANT', 10);
|
|
|
|
class SystemClass
|
|
{
|
|
const HELLO = 'hello';
|
|
|
|
/**
|
|
* @param int $a
|
|
* @param string $b
|
|
*
|
|
*/
|
|
public function foo($a, $b): string
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param int $a
|
|
* @param string $b
|
|
*
|
|
*/
|
|
public static function bar($a, $b): string
|
|
{
|
|
}
|
|
}
|