Skip to content

Commit a247d99

Browse files
committed
Removed forced string typing on attributeTypedCollectionHelper
This can technically be an integer, but it never will be in the context of our library.
1 parent 417afcc commit a247d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord/Parts/PartTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ protected function attributeCollectionHelper($key, $class, ?string $discrim = 'i
527527
*
528528
* @return ExCollectionInterface
529529
*/
530-
protected function attributeTypedCollectionHelper(string $class, string $key): ExCollectionInterface
530+
protected function attributeTypedCollectionHelper(string $class, $key): ExCollectionInterface
531531
{
532532
/** @var ExCollectionInterface $collection */
533533
$collection = $this->discord->getCollectionClass()::for($class);

0 commit comments

Comments
 (0)