File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ matrix:
10
10
allow_failures :
11
11
- php : hhvm
12
12
- php : hhvm-nightly
13
+
14
+ cache :
15
+ directories :
16
+ - $HOME/.composer/cache
13
17
14
18
script :
15
19
- vendor/bin/phpunit --coverage-clover=coverage.clover
16
20
17
21
before_script :
18
- - composer install --no-interaction --prefer-source --dev
22
+ - composer install --no-interaction
19
23
20
24
after_script :
21
25
- wget https://scrutinizer-ci.com/ocular.phar
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ This package provides two Resolvers that are capable of
16
16
17
17
## Installing
18
18
19
- The easiest way to install this library is with [ Composer] ( http ://getcomposer.org) using the following command:
19
+ The easiest way to install this library is with [ Composer] ( https ://getcomposer.org) using the following command:
20
20
21
21
$ composer require phpdocumentor/type-resolver
22
22
@@ -146,7 +146,7 @@ class as second argument and the Resolvers will take this into account when reso
146
146
To obtain the resolved class name for the ` @var ` tag in the example above you can do:
147
147
148
148
$typeResolver = new \phpDocumentor\Reflection\TypeResolver();
149
- $type = $typeResolver->resolve('Types\Context');
149
+ $type = $typeResolver->resolve('Types\Context', $context );
150
150
151
151
When you do this you will receive an object of class ` \phpDocumentor\Reflection\Types\Object_ ` for which you can call
152
152
the ` getFqsen ` method to receive a Value Object that represents the complete FQSEN. So that would be
@@ -162,7 +162,7 @@ Another example is on how to resolve the FQSEN of a method as can be seen with t
162
162
resolve that you can do the following:
163
163
164
164
$fqsenResolver = new \phpDocumentor\Reflection\FqsenResolver();
165
- $type = $fqsenResolver->resolve('Classy::otherFunction()');
165
+ $type = $fqsenResolver->resolve('Classy::otherFunction()', $context );
166
166
167
167
Because Classy is a Class in the current namespace its FQSEN will have the ` My\Example ` namespace and by calling the
168
168
` resolve ` method of the FQSEN Resolver you will receive an ` Fqsen ` object that refers to
You can’t perform that action at this time.
0 commit comments