Skip to content

Commit

Permalink
revised tests for vimeo#9496
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomulik committed Mar 13, 2023
1 parent f61ffe4 commit 24ddf9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/TypeAnnotationTest.php
Expand Up @@ -679,7 +679,7 @@ class Foo {
'$output===' => 'callable():int',
],
],
'unionOfStringsContainingBraceCharTypeAlias' => [
'unionOfStringsContainingBraceChar' => [
'code' => '<?php
/** @psalm-type T \'{\'|\'}\' */
class Foo {
Expand All @@ -692,7 +692,7 @@ class Foo {
'$t===' => '\'{\'|\'}\'',
],
],
'unionOfStringsContainingGTCharTypeAlias' => [
'unionOfStringsContainingGTChar' => [
'code' => '<?php
/** @psalm-type T \'<\'|\'>\' */
class Foo {
Expand All @@ -705,7 +705,7 @@ class Foo {
'$t===' => '\'<\'|\'>\'',
],
],
'unionOfStringsContainingBracketCharTypeAlias' => [
'unionOfStringsContainingBracketChar' => [
'code' => '<?php
/** @psalm-type T \'(\'|\')\' */
class Foo {
Expand All @@ -718,12 +718,12 @@ class Foo {
'$t===' => '\'(\'|\')\'',
],
],
'handlesFreeTextAfterTypeAlias' => [
'bareWordsCommentAfterType' => [
'code' => '<?php
/**
* @psalm-type T string
*
* Lorem ipsum.
* Lorem ipsum
*/
class Foo {
/** @psalm-var T */
Expand Down

0 comments on commit 24ddf9e

Please sign in to comment.