Skip to content

Commit

Permalink
Fixed some types in docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexydec committed May 19, 2022
1 parent 53fa495 commit d6e18f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/jslite.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function __construct(array $config = []) {
* @param string $var The name of the property to retrieve, currently 'length' and output
* @return mixed The number of children in the object for length, the output config, or null if the parameter doesn't exist
*/
#[\ReturnTypeWillChange]
public function __get(string $var) {
if ($var === 'config') {
return $this->config;
Expand All @@ -87,7 +88,7 @@ public function __get(string $var) {
* @param string $url The address of the Javascript file to retrieve
* @param resource $context A resource object made with stream_context_create()
* @param string &$error A reference to any user error that is generated
* @return mixed The loaded Javascript, or false on error
* @return string|false The loaded Javascript, or false on error
*/
public function open(string $url, $context = null, string &$error = null) {

Expand Down
2 changes: 1 addition & 1 deletion src/tokens/expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(?string $bracket = null) {
/**
* Parses an array of tokens
*
* @param array &$tokens A tokenise object
* @param tokenise &$tokens A tokenise object
* @return bool Whether any commands or an EOL was captured
*/
public function parse(tokenise $tokens) : bool {
Expand Down

0 comments on commit d6e18f2

Please sign in to comment.