Skip to content

Commit

Permalink
must be the self:: of course
Browse files Browse the repository at this point in the history
  • Loading branch information
dima committed Jul 14, 2013
1 parent 2474b77 commit f80e6f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct()
* @param string $type Script type and/or array of script attributes
* @return HeadScript
*/
public function __invoke($mode = static::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
public function __invoke($mode = self::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
{
if ((null !== $spec) && is_string($spec)) {
$action = ucfirst(strtolower($mode));
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/InlineScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineScript extends HeadScript
* @param string $type Script type and/or array of script attributes
* @return InlineScript
*/
public function __invoke($mode = static::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
public function __invoke($mode = self::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
{
return parent::__invoke($mode, $spec, $placement, $attrs, $type);
}
Expand Down

0 comments on commit f80e6f3

Please sign in to comment.