File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ class PHPTypes {
386
386
Setmark (item, 1 );
387
387
char *colon_ptr = Strchr (key, ' :' );
388
388
assert (colon_ptr);
389
- int colon = colon_ptr - Char (key);
389
+ int colon = ( int )( colon_ptr - Char (key) );
390
390
if (colon > 0 && Strcmp (colon_ptr + 1 , " __construct" ) != 0 ) {
391
391
// See if there's a parent class which implements this method, and if so
392
392
// emit its arginfo and then merge its PHPTypes into ours as we need to
@@ -959,7 +959,7 @@ class PHP : public Language {
959
959
}
960
960
}
961
961
962
- phptypes->adjust (emit_num_required (l), Equal (fname, " __construct" ));
962
+ phptypes->adjust (emit_num_required (l), Equal (fname, " __construct" ) ? true : false );
963
963
964
964
String *arginfo_id = phptypes->get_arginfo_id ();
965
965
String *s = cs_entry;
You can’t perform that action at this time.
0 commit comments