Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-management
Commits
7bd2a58e
Commit
7bd2a58e
authored
May 25, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: View::e() accept mixed type to handle int/null IDs from APIs
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
0402e2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
View.php
core/View.php
+3
-3
No files found.
core/View.php
View file @
7bd2a58e
...
...
@@ -81,12 +81,12 @@ class View
return
MODULES_PATH
.
"/
{
$view
}
.php"
;
}
public
static
function
escape
(
?
string
$value
)
:
string
public
static
function
escape
(
mixed
$value
)
:
string
{
return
htmlspecialchars
(
$value
??
''
,
ENT_QUOTES
,
'UTF-8'
);
return
htmlspecialchars
(
(
string
)(
$value
??
''
)
,
ENT_QUOTES
,
'UTF-8'
);
}
public
static
function
e
(
?
string
$value
)
:
string
public
static
function
e
(
mixed
$value
)
:
string
{
return
self
::
escape
(
$value
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment