Skip to content

Commit 6ee021b

Browse files
committed
Fix linter stubs
1 parent ea2884e commit 6ee021b

2 files changed

Lines changed: 0 additions & 120 deletions

File tree

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ parameters:
66
- resources/stubs/ffi.stub.php
77
excludePaths:
88
- src/Api/Console/Driver/Windows/Kernel32.php
9-
- src/Api/Alert/Driver/Windows/User32.php
10-
- src/Api/Alert/Driver/MacOS/LibObjectC.php
119
strictRules:
1210
allRules: true
1311
fileExtensions:

resources/stubs/ffi.stub.php

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -28,121 +28,3 @@ public function FreeConsole(): bool {}
2828
}
2929

3030
}
31-
32-
namespace Boson\Api\Alert\Driver\Windows {
33-
34-
35-
use FFI\CData;
36-
use FFI\CType;
37-
38-
/**
39-
* @mixin \FFI
40-
* @seal-properties
41-
* @seal-methods
42-
*/
43-
final readonly class User32
44-
{
45-
public const int MB_ABORTRETRYIGNORE = 0x00000002;
46-
public const int MB_CANCELTRYCONTINUE = 0x00000006;
47-
public const int MB_HELP = 0x00004000;
48-
public const int MB_OK = 0x00000000;
49-
public const int MB_OKCANCEL = 0x00000001;
50-
public const int MB_RETRYCANCEL = 0x00000005;
51-
public const int MB_YESNO = 0x00000004;
52-
public const int MB_YESNOCANCEL = 0x00000003;
53-
public const int MB_ICONEXCLAMATION = 0x00000030;
54-
public const int MB_ICONWARNING = 0x00000030;
55-
public const int MB_ICONINFORMATION = 0x00000040;
56-
public const int MB_ICONASTERISK = 0x00000040;
57-
public const int MB_ICONQUESTION = 0x00000020;
58-
public const int MB_ICONSTOP = 0x00000010;
59-
public const int MB_ICONERROR = 0x00000010;
60-
public const int MB_ICONHAND = 0x00000010;
61-
public const int MB_DEFBUTTON1 = 0x00000000;
62-
public const int MB_DEFBUTTON2 = 0x00000100;
63-
public const int MB_DEFBUTTON3 = 0x00000200;
64-
public const int MB_DEFBUTTON4 = 0x00000300;
65-
public const int MB_APPLMODAL = 0x00000000;
66-
public const int MB_SYSTEMMODAL = 0x00001000;
67-
public const int MB_TASKMODAL = 0x00002000;
68-
public const int MB_DEFAULT_DESKTOP_ONLY = 0x00020000;
69-
public const int MB_RIGHT = 0x00080000;
70-
public const int MB_RTLREADING = 0x00100000;
71-
public const int MB_SETFOREGROUND = 0x00010000;
72-
public const int MB_TOPMOST = 0x00040000;
73-
public const int MB_SERVICE_NOTIFICATION = 0x00200000;
74-
public const int IDABORT = 3;
75-
public const int IDCANCEL = 2;
76-
public const int IDCONTINUE = 11;
77-
public const int IDIGNORE = 5;
78-
public const int IDNO = 7;
79-
public const int IDOK = 1;
80-
public const int IDRETRY = 4;
81-
public const int IDTRYAGAIN = 10;
82-
public const int IDYES = 6;
83-
84-
/**
85-
* @param CType|non-empty-string $type
86-
*/
87-
public function new(CType|string $type, bool $owned = true, bool $persistent = false): CData {}
88-
89-
/**
90-
* @param CType|non-empty-string $type
91-
*/
92-
public function cast(CType|string $type, CData|int|float|bool|null $ptr): CData {}
93-
94-
public function MessageBoxW(?CData $hWnd, CData $lpText, CData $lpCaption, int $uType): int {}
95-
}
96-
97-
}
98-
99-
namespace Boson\Api\Alert\Driver\MacOS {
100-
101-
use FFI\CData;
102-
use FFI\CType;
103-
104-
/**
105-
* @mixin \FFI
106-
* @seal-properties
107-
* @seal-methods
108-
*/
109-
final readonly class LibObjectC
110-
{
111-
/**
112-
* @param CType|non-empty-string $type
113-
*/
114-
public function new(CType|string $type, bool $owned = true, bool $persistent = false): CData {}
115-
116-
/**
117-
* @param CType|non-empty-string $type
118-
*/
119-
public function cast(CType|string $type, CData|int|float|bool|null $ptr): CData {}
120-
121-
/**
122-
* @var CData & callable(mixed...):CData
123-
*/
124-
public CData $objc_msgSend;
125-
126-
/**
127-
* @param non-empty-string $return
128-
* @param non-empty-string ...$types
129-
*
130-
* @return CData & callable(CData, CData, mixed...):mixed
131-
*/
132-
public function getMessageSend(string $return, string ...$types): callable {}
133-
134-
/**
135-
* @param non-empty-string|null $name
136-
*/
137-
public function objc_getClass(?string $name): CData {}
138-
139-
/**
140-
* @param non-empty-string|null $str
141-
*/
142-
public function sel_registerName(?string $str): CData {}
143-
144-
public function objc_msgSend(mixed ...$args): CData {}
145-
146-
}
147-
148-
}

0 commit comments

Comments
 (0)