|
14 | 14 | use Lkrms\Support\Catalog\NormaliserFlag; |
15 | 15 | use Lkrms\Support\Catalog\RelationshipType; |
16 | 16 | use Lkrms\Utility\Reflect; |
| 17 | +use Closure; |
17 | 18 | use DateTimeInterface; |
18 | 19 | use ReflectionClass; |
19 | 20 | use ReflectionMethod; |
@@ -268,75 +269,75 @@ class IntrospectionClass |
268 | 269 | /** |
269 | 270 | * Normalises property names |
270 | 271 | * |
271 | | - * @var (\Closure(string $name, bool $greedy=, string...$hints): string)|null |
| 272 | + * @var (Closure(string $name, bool $greedy=, string...$hints): string)|null |
272 | 273 | */ |
273 | 274 | public $Normaliser; |
274 | 275 |
|
275 | 276 | /** |
276 | 277 | * Normalises property names with $greedy = false |
277 | 278 | * |
278 | | - * @var (\Closure(string): string)|null |
| 279 | + * @var (Closure(string): string)|null |
279 | 280 | */ |
280 | 281 | public $GentleNormaliser; |
281 | 282 |
|
282 | 283 | /** |
283 | 284 | * Normalises property names with $hints = $this->NormalisedProperties |
284 | 285 | * |
285 | | - * @var (\Closure(string): string)|null |
| 286 | + * @var (Closure(string): string)|null |
286 | 287 | */ |
287 | 288 | public $CarefulNormaliser; |
288 | 289 |
|
289 | 290 | /** |
290 | 291 | * Signature => closure |
291 | 292 | * |
292 | | - * @var array<string,\Closure> |
| 293 | + * @var array<string,Closure> |
293 | 294 | */ |
294 | 295 | public $CreateFromSignatureClosures = []; |
295 | 296 |
|
296 | 297 | /** |
297 | 298 | * Signature => (int) $strict => closure |
298 | 299 | * |
299 | | - * @var array<string,array<int,\Closure>> |
| 300 | + * @var array<string,array<int,Closure>> |
300 | 301 | */ |
301 | 302 | public $CreateProviderlessFromSignatureClosures = []; |
302 | 303 |
|
303 | 304 | /** |
304 | 305 | * Signature => (int) $strict => closure |
305 | 306 | * |
306 | | - * @var array<string,array<int,\Closure>> |
| 307 | + * @var array<string,array<int,Closure>> |
307 | 308 | */ |
308 | 309 | public $CreateProvidableFromSignatureClosures = []; |
309 | 310 |
|
310 | 311 | /** |
311 | 312 | * (int) $strict => closure |
312 | 313 | * |
313 | | - * @var array<int,\Closure> |
| 314 | + * @var array<int,Closure> |
314 | 315 | */ |
315 | 316 | public $CreateProviderlessFromClosures = []; |
316 | 317 |
|
317 | 318 | /** |
318 | 319 | * (int) $strict => closure |
319 | 320 | * |
320 | | - * @var array<int,\Closure> |
| 321 | + * @var array<int,Closure> |
321 | 322 | */ |
322 | 323 | public $CreateProvidableFromClosures = []; |
323 | 324 |
|
324 | 325 | /** |
325 | 326 | * Normalised property name => action => closure |
326 | 327 | * |
327 | | - * @var array<string,array<string,\Closure>> |
| 328 | + * @var array<string,array<string,Closure>> |
328 | 329 | */ |
329 | 330 | public $PropertyActionClosures = []; |
330 | 331 |
|
331 | 332 | /** |
332 | | - * @var \Closure|null |
| 333 | + * @var Closure|null |
333 | 334 | */ |
334 | 335 | public $GetNameClosure; |
335 | 336 |
|
336 | 337 | /** |
337 | 338 | * Rules signature => closure |
338 | 339 | * |
339 | | - * @var array<string,\Closure> |
| 340 | + * @var array<string,Closure> |
340 | 341 | */ |
341 | 342 | public $SerializeClosures = []; |
342 | 343 |
|
@@ -367,7 +368,7 @@ public function __construct(string $class) |
367 | 368 | if ($class->implementsInterface(ReturnsNormaliser::class)) { |
368 | 369 | $this->Normaliser = $class->getMethod('normaliser')->invoke(null); |
369 | 370 | } else { |
370 | | - $this->Normaliser = \Closure::fromCallable([$className, 'normalise']); |
| 371 | + $this->Normaliser = Closure::fromCallable([$className, 'normalise']); |
371 | 372 | } |
372 | 373 | $this->GentleNormaliser = fn(string $name): string => ($this->Normaliser)($name, false); |
373 | 374 | $this->CarefulNormaliser = fn(string $name): string => ($this->Normaliser)($name, true, ...$this->NormalisedKeys); |
|
0 commit comments