Skip to content
This repository was archived by the owner on Sep 9, 2019. It is now read-only.

Conversation

@thekid
Copy link
Contributor

@thekid thekid commented Sep 20, 2015

See https://wiki.php.net/rfc/class_name_scalars. Added to PHP syntax, supported in both code and annotations:

#[@test, @expect(IllegalArgumentException::class)]
public function raises_an_exception() {
  // ...
}

#[@test]
public function is_instance_of_type() {
  $this->assertInstanceOf(Type::class, $this->fixture);
}

@thekid thekid added the feature label Sep 20, 2015
@thekid thekid added the php label Sep 20, 2015
thekid added a commit that referenced this pull request Sep 20, 2015
Add support for class Name Resolution As Scalar Via "class" Keyword
@thekid thekid merged commit c94ee4b into master Sep 20, 2015
@thekid thekid deleted the feature/class-name-scalars branch September 20, 2015 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants