Skip to content

Instantly share code, notes, and snippets.

@weirdan
Last active July 31, 2021 18:25
Show Gist options
  • Save weirdan/69b9f4fe3d0d384295074a42427f7f7a to your computer and use it in GitHub Desktop.
Save weirdan/69b9f4fe3d0d384295074a42427f7f7a to your computer and use it in GitHub Desktop.
<?php
class T {}
abstract class A {
/** @param array<int, T> $t */
abstract protected function f(array $t): void;
}
class B extends A
{
/**
* @param array<int, T> $t
*/
public function f(array $t): void
{
}
}
{
"name": "vincentlanglet/twig-cs-fixer",
"require-dev": {
"vimeo/psalm": "dev-master"
},
"autoload": {
"psr-4": {
"": "."
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
phpVersion="8.0"
>
<projectFiles>
<file name="B.php" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment