brianlmoon / net_gearman

A PHP interface for Gearman
84 stars 46 forks source link

Use #[AllowDynamicProperties] to suppress dynamic property notice in jobs #54

Open badraxas opened 5 months ago

badraxas commented 5 months ago

Another option is to add the property in Common.php as $handle and $conn:

    /**
     * Parameters for Job instantiation
     * @var array $initParams
     */
    protected $initParams = array();

But this will break the user's jobs if someone declared the property with a type.