for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*@author nicolaas [at] sunnysideup.co.nz
**/
class FlowPlayer extends File
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
protected static $swf_file = "flowplayer/thirdparty/flowplayer-3.2.5.swf";
public static function set_swf_file($v)
self::$swf_file = $v;
}
public static function get_swf_file()
return self::$swf_file;
protected static $flow_player_config_file = "flowplayer/javascript/FlowPlayerConfig.js";
public static function set_flow_player_config_file($v)
self::$flow_player_config_file = $v;
public static function get_flow_player_config_file()
return self::$flow_player_config_file;
public function AbsoluteLink($IDString = "FlowPlayer")
Requirements::javascript("flowplayer/thirdparty/flowplayer-3.2.4.min.js");
Requirements::javascript(self::get_flow_player_config_file());
Requirements::customScript('$f("'.$IDString.'", "'.self::get_swf_file().'", FlowPlayerConfig);', "FlowPlayerSWF");
'$f("' . $IDString . '",...'", FlowPlayerConfig);'
string
object<The>
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
'FlowPlayerSWF'
object<Use>|null
Requirements::themedCSS("FlowPlayer");
return $this->getAbsoluteURL();
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.