MDL-58859 mlbackend_php: Upgrade php-ml to latest version
Part of MDL-57791 epic.
This commit is contained in:
@@ -11,7 +11,8 @@ class ModelManager
|
||||
{
|
||||
/**
|
||||
* @param Estimator $estimator
|
||||
* @param string $filepath
|
||||
* @param string $filepath
|
||||
*
|
||||
* @throws FileException
|
||||
* @throws SerializeException
|
||||
*/
|
||||
@@ -23,7 +24,7 @@ class ModelManager
|
||||
|
||||
$serialized = serialize($estimator);
|
||||
if (empty($serialized)) {
|
||||
throw SerializeException::cantSerialize(get_type($estimator));
|
||||
throw SerializeException::cantSerialize(gettype($estimator));
|
||||
}
|
||||
|
||||
$result = file_put_contents($filepath, $serialized, LOCK_EX);
|
||||
@@ -34,7 +35,9 @@ class ModelManager
|
||||
|
||||
/**
|
||||
* @param string $filepath
|
||||
*
|
||||
* @return Estimator
|
||||
*
|
||||
* @throws FileException
|
||||
* @throws SerializeException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user