mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
d9776aa710
Introduced in 56cddd16bf
29 lines
369 B
PHP
29 lines
369 B
PHP
<?php
|
|
namespace Acme\SampleProject;
|
|
|
|
function foo(string $s): int
|
|
{
|
|
return 'bar';
|
|
}
|
|
|
|
function bar(string $s) : string {
|
|
return $s;
|
|
}
|
|
|
|
function baz(string $s) : string {
|
|
return $s;
|
|
}
|
|
|
|
function bat(string $s) : string {
|
|
return $s;
|
|
}
|
|
|
|
function bang(string $s) : string {
|
|
return $s;
|
|
}
|
|
|
|
function boom(): void
|
|
{
|
|
echo (string) ($_GET['abc'] ?? 'z');
|
|
}
|