1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/tests/fixtures/DummyProjectWithErrors/src/FileWithErrors.php
2020-09-26 13:31:38 -04:00

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');
}