Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
61d7945a
Commit
61d7945a
authored
1 year ago
by
Thomas Hackl
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Fehlermeldungen mit PHP 8 in der SOAP-Schnittstelle"
Closes #3454 Merge request
studip/studip!2349
parent
9ba053ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vendor/studip_ws/dispatcher.php
+1
-0
1 addition, 0 deletions
vendor/studip_ws/dispatcher.php
vendor/studip_ws/type.php
+4
-4
4 additions, 4 deletions
vendor/studip_ws/type.php
with
5 additions
and
4 deletions
vendor/studip_ws/dispatcher.php
+
1
−
0
View file @
61d7945a
...
@@ -125,6 +125,7 @@ class Studip_Ws_Dispatcher {
...
@@ -125,6 +125,7 @@ class Studip_Ws_Dispatcher {
return
$this
->
throw_exception
(
'No service responds to "%s".'
,
$method0
);
return
$this
->
throw_exception
(
'No service responds to "%s".'
,
$method0
);
$service
=
$this
->
api_methods
[
$method0
]
->
service
;
$service
=
$this
->
api_methods
[
$method0
]
->
service
;
$argument_array
=
array_values
(
$argument_array
);
# calling before filter
# calling before filter
$before
=
$service
->
before_filter
(
$method0
,
$argument_array
);
$before
=
$service
->
before_filter
(
$method0
,
$argument_array
);
...
...
This diff is collapsed.
Click to expand it.
vendor/studip_ws/type.php
+
4
−
4
View file @
61d7945a
...
@@ -142,7 +142,7 @@ class Studip_Ws_Type {
...
@@ -142,7 +142,7 @@ class Studip_Ws_Type {
*
*
* @todo name ist falsch
* @todo name ist falsch
*/
*/
function
get_element_type
(
$type
)
{
public
static
function
get_element_type
(
$type
)
{
if
(
is_array
(
$type
))
if
(
is_array
(
$type
))
return
current
(
$type
);
return
current
(
$type
);
trigger_error
(
sprintf
(
'\$type has to be an array, but is: "%s"'
,
trigger_error
(
sprintf
(
'\$type has to be an array, but is: "%s"'
,
...
@@ -159,7 +159,7 @@ class Studip_Ws_Type {
...
@@ -159,7 +159,7 @@ class Studip_Ws_Type {
*
*
* @return type <description>
* @return type <description>
*/
*/
function
is_complex_type
(
$type0
)
{
public
static
function
is_complex_type
(
$type0
)
{
$type
=
Studip_Ws_Type
::
get_type
(
$type0
);
$type
=
Studip_Ws_Type
::
get_type
(
$type0
);
return
$type
===
STUDIP_WS_TYPE_ARRAY
||
$type
===
STUDIP_WS_TYPE_STRUCT
;
return
$type
===
STUDIP_WS_TYPE_ARRAY
||
$type
===
STUDIP_WS_TYPE_STRUCT
;
}
}
...
@@ -172,7 +172,7 @@ class Studip_Ws_Type {
...
@@ -172,7 +172,7 @@ class Studip_Ws_Type {
*
*
* @return type <description>
* @return type <description>
*/
*/
function
is_primitive_type
(
$type
)
{
public
static
function
is_primitive_type
(
$type
)
{
return
!
Studip_Ws_Type
::
is_complex_type
(
$type
);
return
!
Studip_Ws_Type
::
is_complex_type
(
$type
);
}
}
...
@@ -184,7 +184,7 @@ class Studip_Ws_Type {
...
@@ -184,7 +184,7 @@ class Studip_Ws_Type {
*
*
* @return type <description>
* @return type <description>
*/
*/
function
get_struct_elements
(
$struct
)
{
public
static
function
get_struct_elements
(
$struct
)
{
# check argument; has to be a class
# check argument; has to be a class
if
(
!
class_exists
(
$struct
))
{
if
(
!
class_exists
(
$struct
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment