Skip to content

Commit 69c96a8

Browse files
committed
Fix docblocks to indicate the exception which is thrown rather than the trait
1 parent 07d829d commit 69c96a8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/transform.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ function __()
5050
*
5151
* @return \Closure
5252
*
53-
* @throws \TomPHP\Transform\Exception\ExpectedStringTrait
53+
* @throws \TomPHP\Transform\Exception\InvalidArgumentException
54+
* @throws \TomPHP\Transform\Exception\UnexpectedValueException
5455
*/
5556
function callMethod($methodName, ...$args)
5657
{
@@ -208,7 +209,8 @@ function ($arg) use ($value) {
208209
*
209210
* @return \Closure
210211
*
211-
* @throws \TomPHP\Transform\Exception\ExpectedStringTrait
212+
* @throws \TomPHP\Transform\Exception\InvalidArgumentException
213+
* @throws \TomPHP\Transform\Exception\UnexpectedValueException
212214
*/
213215
function prepend($prefix)
214216
{
@@ -232,7 +234,7 @@ function prepend($prefix)
232234
*
233235
* @return \Closure
234236
*
235-
* @throws \TomPHP\Transform\Exception\ExpectedStringTrait
237+
* @throws \TomPHP\Transform\Exception\InvalidArgumentException
236238
*/
237239
function append($suffix)
238240
{

0 commit comments

Comments
 (0)