@@ -121,31 +121,31 @@ private function getNamespaceByName(Project $project, $name)
121
121
private function buildNamespace (File $ file , Namespace_ $ namespace )
122
122
{
123
123
foreach ($ file ->getClasses () as $ class ) {
124
- if ($ namespace ->getFqsen () . '\\' . $ class ->getName () === $ class ->getFqsen ()) {
124
+ if ($ namespace ->getFqsen () . '\\' . $ class ->getName () === ( string ) $ class ->getFqsen ()) {
125
125
$ namespace ->addClass ($ class ->getFqsen ());
126
126
}
127
127
}
128
128
129
129
foreach ($ file ->getInterfaces () as $ interface ) {
130
- if ($ namespace ->getFqsen () . '\\' . $ interface ->getName () === $ interface ->getFqsen ()) {
130
+ if ($ namespace ->getFqsen () . '\\' . $ interface ->getName () === ( string ) $ interface ->getFqsen ()) {
131
131
$ namespace ->addInterface ($ interface ->getFqsen ());
132
132
}
133
133
}
134
134
135
135
foreach ($ file ->getFunctions () as $ function ) {
136
- if ($ namespace ->getFqsen () . '\\' . $ function ->getName () . '() ' === $ function ->getFqsen ()) {
136
+ if ($ namespace ->getFqsen () . '\\' . $ function ->getName () . '() ' === ( string ) $ function ->getFqsen ()) {
137
137
$ namespace ->addFunction ($ function ->getFqsen ());
138
138
}
139
139
}
140
140
141
141
foreach ($ file ->getConstants () as $ constant ) {
142
- if ($ namespace ->getFqsen () . ':: ' . $ constant ->getName () === $ constant ->getFqsen ()) {
142
+ if ($ namespace ->getFqsen () . ':: ' . $ constant ->getName () === ( string ) $ constant ->getFqsen ()) {
143
143
$ namespace ->addConstant ($ constant ->getFqsen ());
144
144
}
145
145
}
146
146
147
147
foreach ($ file ->getTraits () as $ trait ) {
148
- if ($ namespace ->getFqsen () . '\\' . $ trait ->getName () === $ trait ->getFqsen ()) {
148
+ if ($ namespace ->getFqsen () . '\\' . $ trait ->getName () === ( string ) $ trait ->getFqsen ()) {
149
149
$ namespace ->addTrait ($ trait ->getFqsen ());
150
150
}
151
151
}
0 commit comments