From fc15bf36ab532f9b20f84b455a8f5515b12c9090 Mon Sep 17 00:00:00 2001 From: Cameron Murphy Date: Mon, 11 Jan 2016 16:28:05 +1100 Subject: [PATCH] Call getPath() instead of string casting --- src/BeSimple/SoapBundle/WebServiceContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BeSimple/SoapBundle/WebServiceContext.php b/src/BeSimple/SoapBundle/WebServiceContext.php index dce81a7..875659e 100644 --- a/src/BeSimple/SoapBundle/WebServiceContext.php +++ b/src/BeSimple/SoapBundle/WebServiceContext.php @@ -44,7 +44,7 @@ class WebServiceContext if (null === $this->serviceDefinition) { $cache = new ConfigCache(sprintf('%s/%s.definition.php', $this->options['cache_dir'], $this->options['name']), $this->options['debug']); if ($cache->isFresh()) { - $this->serviceDefinition = include (string) $cache; + $this->serviceDefinition = include $cache->getPath(); } else { if (!$this->loader->supports($this->options['resource'], $this->options['resource_type'])) { throw new \LogicException(sprintf('Cannot load "%s" (%s)', $this->options['resource'], $this->options['resource_type'])); @@ -82,7 +82,7 @@ class WebServiceContext $cache->write($dumper->dump()); } - return (string) $cache; + return $cache->getPath(); } public function getServiceBinder()