Last analyzed 429f112 3 days ago
Default analysis branch is
Currently analyzing run
Undefined properties must not be accessed PHP-W1033
Bug risk
4 months agoa year old
Access to an undefined property App\Models\MacAddress::$ip
57                $bytes[3] = strval(intval($bytes[3]) + 1);
58            }
59            // TODO: if this ip reaches config('custom.physical-last-ip'), we should do something
60            $this->ip =implode('.', $bytes);61            Log::info($this->ip . " is now attached to " . $this->mac_address . " for user " . $this->user->name);
62        } else {
63            Log::info($this->ip . " is now detached from " . $this->mac_address . " for user " . $this->user->name);
Access to an undefined property App\Models\MacAddress::$ip
61            Log::info($this->ip . " is now attached to " . $this->mac_address . " for user " . $this->user->name);
62        } else {
63            Log::info($this->ip . " is now detached from " . $this->mac_address . " for user " . $this->user->name);
64            $this->ip = null;65        }
66        $this->saveQuietly();
67    }