Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit b5c5b48

Browse files
authored
Merge pull request #18 from modulusphp/feature/maintenance-update-and-bug-fixes
Feature/maintenance update and bug fixes
2 parents 3f9f235 + b2e4fed commit b5c5b48

6 files changed

Lines changed: 27 additions & 6 deletions

File tree

File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Modulus\Support\Exceptions\UnknownStorageException;
99
use Modulus\Support\Exceptions\StorageUnusableException;
1010

11-
class File
11+
final class File
1212
{
1313
use Extendable;
1414

Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Modulus\Support\Extendable;
66

7-
class Filesystem
7+
final class Filesystem
88
{
99
use Extendable;
1010

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Donald Pakkies
3+
Copyright (c) 2019 Donald Pakkies
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# Modulus Support Component
22

33
This package contains helper functions, and the Modulus File System.
4+
5+
Install
6+
-------
7+
8+
This package is automatically installed with the Modulus Framework.
9+
10+
```
11+
composer require modulusphp/support
12+
```
13+
14+
Security
15+
-------
16+
17+
If you discover any security related issues, please email donaldpakkies@gmail.com instead of using the issue tracker.
18+
19+
License
20+
-------
21+
22+
The MIT License (MIT). Please see [License File](LICENSE) for more information.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "modulusphp/support",
33
"description": "Support component for Modulus",
4-
"version": "1.9.4.0",
4+
"version": "1.9.4.1",
55
"license": "MIT",
66
"type": "package",
77
"authors": [{

helpers.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Modulus\Utility\Command;
1616
use Modulus\Utility\Process;
1717
use Modulus\Support\Shortcut;
18+
use Modulus\Utility\Variable;
1819
use Modulus\Http\UrlGenerator;
1920
use Modulus\Utility\Notification;
2021
use AtlantisPHP\Telemonlog\Output;
@@ -329,10 +330,11 @@ function get($name) {
329330
* Check if variables exists
330331
*
331332
* @param string $name
333+
* @param null|string $syntax
332334
* @return bool
333335
*/
334-
function has($name) {
335-
return Variable::has($name);
336+
function has($name, ?string $syntax = null) {
337+
return Variable::has($name, $syntax);
336338
}
337339
}
338340

0 commit comments

Comments
 (0)