Skip to content
Snippets Groups Projects
Commit d8fd437a authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Begin fixing return types using Psalm. (#1765)

parent b4a2a2e7
No related merge requests found
...@@ -86,7 +86,7 @@ class ILS extends AbstractBase ...@@ -86,7 +86,7 @@ class ILS extends AbstractBase
* Get the ILS driver associated with this object (or load the default from * Get the ILS driver associated with this object (or load the default from
* the service manager. * the service manager.
* *
* @return \VuFind\ILS\Driver\DriverInterface * @return \VuFind\ILS\Connection
*/ */
public function getCatalog() public function getCatalog()
{ {
......
...@@ -202,7 +202,7 @@ class Cart ...@@ -202,7 +202,7 @@ class Cart
/** /**
* Get cart size. * Get cart size.
* *
* @return string The maximum cart size * @return int The maximum cart size
*/ */
public function getMaxSize() public function getMaxSize()
{ {
......
...@@ -58,7 +58,7 @@ class CssPreCompilerTest extends Unit\TestCase ...@@ -58,7 +58,7 @@ class CssPreCompilerTest extends Unit\TestCase
/** /**
* Data Provider for extensions and classes * Data Provider for extensions and classes
* *
* @return void * @return array
*/ */
public static function extClassProvider() public static function extClassProvider()
{ {
......
...@@ -232,7 +232,7 @@ class ThemeCompilerTest extends Unit\TestCase ...@@ -232,7 +232,7 @@ class ThemeCompilerTest extends Unit\TestCase
/** /**
* Get a test ThemeCompiler object * Get a test ThemeCompiler object
* *
* @return ThemeInfo * @return ThemeCompiler
*/ */
protected function getThemeCompiler() protected function getThemeCompiler()
{ {
......
...@@ -108,7 +108,7 @@ class HeadThemeResourcesTest extends \VuFindTest\Unit\TestCase ...@@ -108,7 +108,7 @@ class HeadThemeResourcesTest extends \VuFindTest\Unit\TestCase
/** /**
* Get a fake HeadMeta helper. * Get a fake HeadMeta helper.
* *
* @return \Laminas\View\Helper\HeadMeta * @return \PHPUnit\Framework\MockObject\MockObject&\VuFindTheme\View\Helper\HeadMeta
*/ */
protected function getMockHeadMeta() protected function getMockHeadMeta()
{ {
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
*/ */
namespace VuFindTest\View\Helper; namespace VuFindTest\View\Helper;
use VuFindTheme\ResourceContainer;
use VuFindTheme\View\Helper\ParentTemplate; use VuFindTheme\View\Helper\ParentTemplate;
/** /**
...@@ -61,7 +60,7 @@ class ParentTemplateTest extends \VuFindTest\Unit\TestCase ...@@ -61,7 +60,7 @@ class ParentTemplateTest extends \VuFindTest\Unit\TestCase
/** /**
* Get a populated resource container for testing. * Get a populated resource container for testing.
* *
* @return ResourceContainer * @return ParentTemplate
*/ */
protected function getHelper($stack) protected function getHelper($stack)
{ {
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
*/ */
namespace VuFindTest\View\Helper; namespace VuFindTest\View\Helper;
use VuFindTheme\ResourceContainer;
use VuFindTheme\View\Helper\TemplatePath; use VuFindTheme\View\Helper\TemplatePath;
/** /**
...@@ -61,7 +60,7 @@ class TemplatePathTest extends \VuFindTest\Unit\TestCase ...@@ -61,7 +60,7 @@ class TemplatePathTest extends \VuFindTest\Unit\TestCase
/** /**
* Get a populated resource container for testing. * Get a populated resource container for testing.
* *
* @return ResourceContainer * @return TemplatePath
*/ */
protected function getHelper() protected function getHelper()
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment