From b71b5ad174473539992877ac8528c7e139cf70f9 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 26 Sep 2019 12:12:57 -0400 Subject: [PATCH] Changed new object call --- phalcon/Mvc/Model.zep | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/phalcon/Mvc/Model.zep b/phalcon/Mvc/Model.zep index cec3dc141a9..3fea4047fb9 100644 --- a/phalcon/Mvc/Model.zep +++ b/phalcon/Mvc/Model.zep @@ -959,13 +959,10 @@ abstract class Model extends AbstractInjectionAware implements EntityInterface, */ if this->_exists(metaData, this->getWriteConnection()) { let this->errorMessages = [ - create_instance_params( - "Phalcon\\Messages\\Message", - [ - "Record cannot be created because it already exists", - null, - "InvalidCreateAttempt" - ] + new Message( + "Record cannot be created because it already exists", + null, + "InvalidCreateAttempt" ) ];