@@ -97,11 +97,11 @@ public function __construct(InternalType\AbstractTypeObject $dictionary, \SplObj
9797 *
9898 * @throws \ZendPdf\Exception\ExceptionInterface
9999 * @param \ZendPdf\InternalType\AbstractTypeObject $dictionary (It's actually Dictionary or Dictionary Object or Reference to a Dictionary Object)
100- * @param SplObjectStorage $processedActions list of already processed action dictionaries, used to avoid cyclic references
100+ * @param SplObjectStorage|null $processedActions list of already processed action dictionaries, used to avoid cyclic references
101101 * @return \ZendPdf\Action\AbstractAction
102102 * @internal
103103 */
104- public static function load (InternalType \AbstractTypeObject $ dictionary , \SplObjectStorage $ processedActions = null )
104+ public static function load (InternalType \AbstractTypeObject $ dictionary , ? \SplObjectStorage $ processedActions = null )
105105 {
106106 if ($ processedActions === null ) {
107107 $ processedActions = new \SplObjectStorage ();
@@ -196,11 +196,11 @@ public function getResource()
196196 *
197197 * @internal
198198 * @param \ZendPdf\ObjectFactory $factory Object factory for newly created indirect objects
199- * @param SplObjectStorage $processedActions list of already processed actions
199+ * @param SplObjectStorage|null $processedActions list of already processed actions
200200 * (used to prevent infinity loop caused by cyclic references)
201201 * @return \ZendPdf\InternalType\IndirectObject|\ZendPdf\InternalType\IndirectObjectReference
202202 */
203- public function dumpAction (ObjectFactory $ factory , \SplObjectStorage $ processedActions = null )
203+ public function dumpAction (ObjectFactory $ factory , ? \SplObjectStorage $ processedActions = null )
204204 {
205205 if ($ processedActions === null ) {
206206 $ processedActions = new \SplObjectStorage ();
0 commit comments