Fix import, missing sprintf() and should use has() not contains()
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 29s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m57s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2025-02-16 13:45:22 +11:00
parent f82cf33f7f
commit 911c6e3229

View File

@ -146,8 +146,8 @@ class Entry extends Model
{
$key = $this->normalizeAttributeKey($key);
if (! config('server')->schema('attributetypes')->contains($key))
throw new AttributeException('Schema doesnt have attribute [%s]',$key);
if (! config('server')->schema('attributetypes')->has($key))
throw new AttributeException(sprintf('Schema doesnt have attribute [%s]',$key));
if ($x=$this->objects->get($key)) {
$x->addValue($value);