1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add test for NoEnumProperties

This was somehow missed from vimeo/psalm#6836
This commit is contained in:
Bruce Weirdan 2021-11-06 22:52:17 +02:00
parent b49c25ae76
commit f0f085e084
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
2 changed files with 11 additions and 1 deletions

View File

@ -1 +0,0 @@
8.0

View File

@ -288,6 +288,17 @@ class EnumTest extends TestCase
false,
'8.1',
],
'propsOnEnum' => [
'<?php
enum Status {
public $prop;
}
',
'error_message' => 'NoEnumProperties',
[],
false,
'8.1',
],
];
}
}